cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Lead and Visit relation in Odata

0 Likes
491

Hi Experts,

I got a requirement where i need to provide an Odata API where the Visit will be created for a Lead. But I am not able to find the relationship between LeadCollection and VisitsCollection. Any Idea how to achieve this.

Thanks in Advance 🙂

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member226
Employee
Employee
0 Likes

Hi,

Relationship of Lead and Visits are stored in LeadBusinessTransactionDocumentReference entity of c4codataapi. Using it there could be multiple ways to achieve your business requirement:

1. You can create a Visit(VisitCollection) as well as Lead (LeadCollection) as an Individual Objects and then associates visit created to lead created using NavigationProperty "LeadBusinessTransactionDocumentReference" of "LeadCollection" Entityset in C4C OData API.

2. Create a custom action in PDI which upon trigger will create a Visit and associate this visit to Lead using BusinessTransactionDocumentReference node using PDI ABSL script. This custom action can be associated with a custom odata based on Lead Object as a "FunctionImport". Pls refer followingfor more details about using FunctionImport.

https://blogs.sap.com/2017/12/07/expose-custom-bo-logic-implemented-by-absl-via-custom-odata-service...

https://apps.support.sap.com/sap/support/knowledge/public/en/2510650

Thanks

Saurabh