<fetch>
<entity name="bookableresource">
<attribute name="userid" />
<attribute name="bookableresourceid" />
<link-entity name="systemuser" from="systemuserid" to="userid">
<filter>
<condition attribute="internalemailaddress" operator="eq" value="@{variables('UserEmail')}" />
</filter>
</link-entity>
</entity>
</fetch>
{
"TeamMember": {
"@{outputs('OData')}": "Microsoft.Dynamics.CRM.msdyn_projectteam",
"msdyn_projectteamid": "@{variables('TeamID')}",
"msdyn_project@odata.bind": "/msdyn_projects(@{variables('ProjectID')})",
"msdyn_bookableresourceid@odata.bind": "/bookableresources(@{outputs('Get_ResourceID')})"
}
}
Create a Task{
"@{outputs('OData')}": "Microsoft.Dynamics.CRM.msdyn_projecttask",
"msdyn_projecttaskid": "@{variables('TaskID')}",
"msdyn_project@odata.bind": "/msdyn_projects(@{variables('ProjectID')})",
"msdyn_description": "Test",
"msdyn_subject": "Test resource Assigmnent",
"msdyn_projectbucket@odata.bind": "/msdyn_projectbuckets(@{outputs('Get_Bucket_ID')})",
"msdyn_start": "@{addDays(utcNow(), 1)}",
"msdyn_scheduledstart": "@{utcNow()}",
"msdyn_scheduledend": "@{addDays(utcNow(), 5)}"
}
{
"msdyn_name": "Test",
"msdyn_projectid@odata.bind": "/msdyn_projects(@{variables('ProjectID')})",
"msdyn_projectteamid@odata.bind": "/msdyn_projectteams(@{variables('TeamID')})",
"msdyn_taskid@odata.bind": "/msdyn_projecttasks(@{variables('TaskID')})",
"@{outputs('OData')}": "Microsoft.Dynamics.CRM.msdyn_resourceassignment"
}
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... 283,860 Moderator
Ludwig Reinhard Microsoft Employee
Martin Dráb 225,155 Moderator