on 07-22-2015 6:11 AM
Hello Everyone,
For creating SalesOrder/Purchase Order we generally need to implement deep entity functionality .
Suppose let's say if we written something in create entity method for Salesorder Header set What will be the consequences ?
Understand that it's seems to be a illogical question , Because nobody would implement create method for this scenarioBut what happens when we call the URI while creating sales order using the request XML?
How it would know that it actually need to call deep entity method and not create entity method?
Best Regards,
Lakshman.
Laxman,
Decision to call "Create Entity" Vs "Create Deep" is made by the Gateway framework by looking at the request body. If it has deep body (inline content), only the deep method will be called, else the regular create method is called.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Lakshman,
Payload for Deep Entity will have the Item details with Navigation Property and based on this GW will call Create_Deep_Entity.
When Payload is Flat Structure GW will call Create_Entity.
We need not handle calling Deep Entity / Create Entity explicitly via any code. GW frame work will take care of it based on Payload.
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your help Aswin and Kishore
Regards,
Lakshman
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.