I have developed an unbound custom action. At this point it does nothing more than set and return a string argument. I can see the action in the $metadata file.
<ComplexType Name="sos_GetJobByPOResponse">
<Property Name="PurchaseOrder" Type="Edm.String" Nullable="false" Unicode="false"/>
</ComplexType>
<Action Name="sos_GetJobByPO">
<ReturnType Type="mscrm.scs_GetJobByPOResponse" Nullable="false"/>
</Action>
When I call the action through a web api call - https://[my instance].api.crm.dynamics.com/api/data/v8.2/sos_GetJobByPO - I get the following response:
{
"error": {
"code": "",
"message": "No HTTP resource was found that matches the request URI 'http://[my instance ].api.crm.dynamics.com/api/data/v8.2/sos_GetJobByPO'."
}
}
Any ideas on what I need to do to get the Web API call to work?
*This post is locked for comments
Digging up an old thread here, but just had the same issue. The solution was to put the action name in lower case. Not sure why this should matter in a URL, but it does.
I tried that. It did not work. The response I got was the same one I get when I put in an invalid action name. I think you only need to fully qualify bound actions.
This is an unbound action.
Still not visible...
Here is the screen shot of the action
Hi Lynn,
Is the custom action a global one or entity specific one?
If it is a Global Action, you can use the URL below.
https://[my instance].api.crm.dynamics.com/api/data/v8.2/sos_GetJobByPO
If it is an Entity-Specific Action, you should use the URL below.
https://[my instance].api.crm.dynamics.com/api/data/v8.2/accounts(DE57510E-59A3-E511-80E4-3863BB35AD90)/Microsoft.Dynamics.CRM.sos_GetJobByPO
In the above URL, accounts should be replaced by the logicalName of the entity of action appended with 's' and DE57510E-59A3-E511-80E4-3863BB35AD90 is the GUID of the entity record you need to perform the entity-specific action.
Hope this helps.
Try changing your url to this and see:
http://[my instance ].api.crm.dynamics.com/api/data/v8.2/Microsoft.Dynamics.CRM.sos_GetJobByPO
Hello,
Can you please post a screenshot of your action?
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,240 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156