{"action":"created","issue":{"url":"https://api.github.com/repos/MicrosoftDocs/dynamics-365-customer-engagement/issues/161","repository_url":"https://api.github.com/repos/MicrosoftDocs/dynamics-365-customer-engagement","labels_url":"https://api.github.com/repos/MicrosoftDocs/dynamics-365-customer-engagement/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/MicrosoftDocs/dynamics-365-customer-engagement/issues/161/comments","events_url":"https://api.github.com/repos/MicrosoftDocs/dynamics-365-customer-engagement/issues/161/events","html_url":"https://github.com/MicrosoftDocs/dynamics-365-customer-engagement/issues/161","id":344085459,"node_id":"MDU6SXNzdWUzNDQwODU0NTk=","number":161,"title":"Passing entityreference parameter","user":{"login":"debajdu","id":41427155,"node_id":"MDQ6VXNlcjQxNDI3MTU1","avatar_url":"https://avatars1.githubusercontent.com/u/41427155?v=4","gravatar_id":"","url":"https://api.github.com/users/debajdu","html_url":"https://github.com/debajdu","followers_url":"https://api.github.com/users/debajdu/followers","following_url":"https://api.github.com/users/debajdu/following{/other_user}","gists_url":"https://api.github.com/users/debajdu/gists{/gist_id}","starred_url":"https://api.github.com/users/debajdu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debajdu/subscriptions","organizations_url":"https://api.github.com/users/debajdu/orgs","repos_url":"https://api.github.com/users/debajdu/repos","events_url":"https://api.github.com/users/debajdu/events{/privacy}","received_events_url":"https://api.github.com/users/debajdu/received_events","type":"User","site_admin":false},"labels":[{"id":933977414,"node_id":"MDU6TGFiZWw5MzM5Nzc0MTQ=","url":"https://api.github.com/repos/MicrosoftDocs/dynamics-365-customer-engagement/labels/assigned-to-author","name":"assigned-to-author","color":"e01f8f","default":false}],"state":"open","locked":false,"assignee":{"login":"KumarVivek","id":1670116,"node_id":"MDQ6VXNlcjE2NzAxMTY=","avatar_url":"https://avatars0.githubusercontent.com/u/1670116?v=4","gravatar_id":"","url":"https://api.github.com/users/KumarVivek","html_url":"https://github.com/KumarVivek","followers_url":"https://api.github.com/users/KumarVivek/followers","following_url":"https://api.github.com/users/KumarVivek/following{/other_user}","gists_url":"https://api.github.com/users/KumarVivek/gists{/gist_id}","starred_url":"https://api.github.com/users/KumarVivek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KumarVivek/subscriptions","organizations_url":"https://api.github.com/users/KumarVivek/orgs","repos_url":"https://api.github.com/users/KumarVivek/repos","events_url":"https://api.github.com/users/KumarVivek/events{/privacy}","received_events_url":"https://api.github.com/users/KumarVivek/received_events","type":"User","site_admin":false},"assignees":[{"login":"KumarVivek","id":1670116,"node_id":"MDQ6VXNlcjE2NzAxMTY=","avatar_url":"https://avatars0.githubusercontent.com/u/1670116?v=4","gravatar_id":"","url":"https://api.github.com/users/KumarVivek","html_url":"https://github.com/KumarVivek","followers_url":"https://api.github.com/users/KumarVivek/followers","following_url":"https://api.github.com/users/KumarVivek/following{/other_user}","gists_url":"https://api.github.com/users/KumarVivek/gists{/gist_id}","starred_url":"https://api.github.com/users/KumarVivek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KumarVivek/subscriptions","organizations_url":"https://api.github.com/users/KumarVivek/orgs","repos_url":"https://api.github.com/users/KumarVivek/repos","events_url":"https://api.github.com/users/KumarVivek/events{/privacy}","received_events_url":"https://api.github.com/users/KumarVivek/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-07-24T15:19:17Z","updated_at":"2018-07-31T08:00:16Z","closed_at":null,"author_association":"NONE","body":"How do you pass entityreference input parameter?\n\n---\n#### Document Details\n\n⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*\n\n* ID: 361590b9-cb25-3aee-61e6-658d093231d6\n* Version Independent ID: 1251e753-bf19-8aef-084d-179ac147ea99\n* Content: [invokeProcessAction (Client API reference) in Dynamics 365 Customer Engagement](https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/clientapi/reference/xrm-utility/invokeprocessaction)\n* Content Source: [ce/developer/clientapi/reference/Xrm-Utility/invokeProcessAction.md](https://github.com/MicrosoftDocs/dynamics-365-customer-engagement/blob/live/ce/developer/clientapi/reference/Xrm-Utility/invokeProcessAction.md)\n* Service: **crm-online**\n* GitHub Login: @KumarVivek\n* Microsoft Alias: **kvivek**"},"comment":{"url":"https://api.github.com/repos/MicrosoftDocs/dynamics-365-customer-engagement/issues/comments/409131636","html_url":"https://github.com/MicrosoftDocs/dynamics-365-customer-engagement/issues/161#issuecomment-409131636","issue_url":"https://api.github.com/repos/MicrosoftDocs/dynamics-365-customer-engagement/issues/161","id":409131636,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTEzMTYzNg==","user":{"login":"debajdu","id":41427155,"node_id":"MDQ6VXNlcjQxNDI3MTU1","avatar_url":"https://avatars1.githubusercontent.com/u/41427155?v=4","gravatar_id":"","url":"https://api.github.com/users/debajdu","html_url":"https://github.com/debajdu","followers_url":"https://api.github.com/users/debajdu/followers","following_url":"https://api.github.com/users/debajdu/following{/other_user}","gists_url":"https://api.github.com/users/debajdu/gists{/gist_id}","starred_url":"https://api.github.com/users/debajdu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debajdu/subscriptions","organizations_url":"https://api.github.com/users/debajdu/orgs","repos_url":"https://api.github.com/users/debajdu/repos","events_url":"https://api.github.com/users/debajdu/events{/privacy}","received_events_url":"https://api.github.com/users/debajdu/received_events","type":"User","site_admin":false},"created_at":"2018-07-31T08:00:15Z","updated_at":"2018-07-31T08:00:15Z","author_association":"NONE","body":"Hi Valdik,\nCustomer had account entity reference as input parameter.\nTried as per your suggestion - { Account: { \"@odata.id\": \"<accountguid>\" } }; // didnt succeed\n{account: {\"@odata.id\" : \"<account Guid>\" }}; // didnt succeed\n\nI have asked them not to use this function as of now, as u have suggested.\n\nThanks for your support.\n\nBest Regards\nDebajit\n________________________________\nFrom: Valdik <notifications@github.com>\nSent: Wednesday, July 25, 2018 2:00 PM\nTo: MicrosoftDocs/dynamics-365-customer-engagement\nCc: debajdu; Author\nSubject: Re: [MicrosoftDocs/dynamics-365-customer-engagement] Passing entityreference parameter (#161)\n\n\nTo pass an entity reference to a custom action you specify it as an object with property \"@odata.id\". So if my custom action has a parameter User - an entity reference to systemuser entity, I'd use something like:\n\nvar actionParams = {\n    User: { \"@odata.id\": userId }\n};\n\nPlease note, however, that Xrm.Utility.invokeProcessAction function is not entirely reliable (see issue #76<https://github.com/MicrosoftDocs/dynamics-365-customer-engagement/issues/76>) and Xrm.WebApi.execute is pretty painful to use (bound parameters, structural properties etc.). On my current project, we decided to use $.ajax for our custom action calls until D365 SDK provides something simple and reliable.\n\n—\nYou are receiving this because you authored the thread.\nReply to this email directly, view it on GitHub<https://github.com/MicrosoftDocs/dynamics-365-customer-engagement/issues/161#issuecomment-407676801>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Angg0zzzKqtbap1MnuPiDTaoOEYqVl01ks5uKCyUgaJpZM4Vc8wS>.\n"}}
{"actor":{"display_login":"debajdu"}}