cancel
Showing results for 
Search instead for 
Did you mean: 

Deep Entity and create entity

former_member209217
Active Contributor
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

kammaje_cis
Active Contributor

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.

Answers (1)

Answers (1)

AshwinDutt
Active Contributor
0 Kudos

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

former_member209217
Active Contributor

Thanks for your help Aswin and Kishore

Regards,

Lakshman