Hi,
I wanted to create an automatic mail for new delegates. Like "Hey mate, you are now delegated to job 'abc' with role 'hiring manager' granted by 'user'."
But the delegate connection is stored in the "msdyn_jobopeningparticipant_cdm_workerSet" property which cannot be searched or viewed. Not in GUI, not in Flow, not with CDS QueryExpression. That's really annoying. I found the entity with some luck here: https://<orgid>.crm4.dynamics.com/XRMServices/2011/OrganizationData.svc/msdyn_jobopeningparticipant_cdm_workerSet
Is there a way to get the delegates programmatically?
Best,
Robin
Code is:
QueryExpression query = new QueryExpression("msdyn_jobopeningparticipant_cdm_worker"); query.ColumnSet = new ColumnSet(new string[] { "cdm_workerid" }); query.Distinct = true; query.Criteria = new FilterExpression(); query.Criteria.AddCondition("msdyn_jobopeningparticipantid", ConditionOperator.Equal, hiringManager.GetAttributeValue<Guid>("msdyn_jobopeningparticipantid")); EntityCollection delegates = service.RetrieveMultiple(query);
You will get workerid, so you get worker entity and can get their email address..
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... 290,818 Super User 2024 Season 2
Martin Dráb 229,147 Most Valuable Professional
nmaenpaa 101,156