I am creating a custom workflow activity on a leads entity. Is there a way to query a non- related entity within the workflow activity? Any help would be appreciated.
Thanks!
*This post is locked for comments
I am creating a custom workflow activity on a leads entity. Is there a way to query a non- related entity within the workflow activity? Any help would be appreciated.
Thanks!
*This post is locked for comments
You can use service.Retrieve if you know the Guid you are looking for, or you can use service.RetrieveMultiple with either QueryExpression or QueryByAttribute.
You can also use Linq queries if you want.
Anything you need can be accomodated from within the code (as long as you don't access external resources, where there are some limitations).
Hope this helps.
Thanks, in order to query any entity I want, I need to use the QueryExpression class?
If you are talking about a Custom Workflow, you can do anything you want. It is developed using Custom Code, and if you want to query a particular entity, there is no reason why you shouldn't.
Hope this helps.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156