Hello experts,
I am working on services and this is totally new for me, before that I've never worked on services.
I needs your guidance to start my work.
Requirement:
External system sends SalesId to D365, D365 reads SalesId and performed "Sales order confirmation" against external system "SalesId"
POC
For the POC, I have refer few blogs and developed below code:
But as a part of testing, not able to proceed further - I have created contract class (parm method: parmSalesId()) and but not able to understand how to get/read "SalesId" from external system
and how to use in contract class - parm method?
Requesting you kindly help on it or if possible show me services using small help.
Development
1. Created Service Group
2. Services
3. Service class
Class XXX_SalesOrderService
{
[SysEntryPointAttribute()]
public str confirmSalesOrder(XXX_SOConfirmationContract _so_contract)
{
SalesId salesId = _so_contract.parmSalesId();
// standard code for SO confirmation
}
4. Contract class
[DataContractAttribute]
class XXX_SOConfirmationContract
{
[DataMemberAttribute('SalesId')]
public list parmSalesId(ConfirmId _SalesId = SalesId)
{
SalesId = _SalesId;
return SalesId
}