Hi everyone ,
While i was going through Actions in Microsoft CRM , i was having trouble in calling it through Console app.
I would like to share the answer with everyone.
*This post is locked for comments
Hi everyone ,
While i was going through Actions in Microsoft CRM , i was having trouble in calling it through Console app.
I would like to share the answer with everyone.
*This post is locked for comments
sorry i saw your post late.. Great it has worked for you.
Never mind - I actually had to manually add Target as an input parameter on the action. I'd gotten the impression elsewhere that that was there by default...
ETA: Poking further, I think that the issue was that the action I was testing on was set to be global (i.e. not for a specific entity). In that case, it let me add a Target parameter, and activate and run the action. However, as soon as I went to add steps to it, every possible thing I did was giving me a super non-descriptive error, so something's weird there.
However, I was able to create a new test action for a specific entity, and now it appears that Target is there without me having to add it, as I thought originally.
What version of CRM are you running? We're running 8.2, and I'm getting the error "Unrecognized request parameter: Target" when I try this.
For more Information use this link
deepakexploring.wordpress.com/.../calling-actions-from-plugin-in-crm-2013
solution of the problem would be
// Calling the Action - new_callMessage
OrganizationRequest req = new OrganizationRequest("new_callMessage");
req["ActionCall"] = "This is a test operation for using Actions in CRM 2016 "; //action name
req["Target"] = new EntityReference("opportunity", opportunity.Id); //entity name and entity Guid
//execute the request
OrganizationResponse response = service.Execute(req);
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,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156