RE: Calling FO - OData action using Postman
Hi,
You can call the metadata to check if the odataaction is created properly.
Use GET request in postman and call this URL
url.cloudax.dynamics.com/.../$metadata
This takes sometime to return the result. In this result, search if your odata action method exists. If it doesnt exist, then you need to correct your code.
If I were you , I would decorate my odata action like the below :
/// <summary>
/// OData Action to check info
/// </summary>
[SysODataActionAttribute("getInfo", false),
SysODataCollectionAttribute("accountNum", Types::String),
SysODataCollectionAttribute("return", Types::String)]
public static void getInfo(CustAccount accountNum)
{
//Do a select with account num rather than passing the cust table object
}