Forum Discussion
The syntax of your code looks fine to my eyeballs.
However, the way you have written the code, you are attempting to retrieve Text6 for the last Entity in the list of assigned entities, assuming there were any assigned entities. If there were no assigned entities, EntityId will remain unassigned, and is one way to cause the function to get Text6 to barf. Are you positive the EntityId is valid when you go to retrieve Text6?
The only way the api.Entity.Text(EntityId,6) should fail is if EntityId is unassigned, set to DimConstants.Unknown, or is otherwise invalid.
- JérémyRenard18 hours agoNew Contributor II
Hello rhankey,
Thank you for your feedback. I can confirm that I do indeed have the ID of my entity, which has been retrieved.
Each workflow profile is assigned to one and only one entity.
Here is the log output:
It seems to me that it's retrieving an empty field, even though I do have a date stored in the entity's text6 field.
Related Content
- 2 years ago
- 1 year ago
- 2 years ago