Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2720

Access Relationship data for Customer in C4C

$
0
0

Hello Experts,

 

I have a requirement to access all the relationship data for customer(Has contact, Attributes etc).

I am able to generate the following code successfully in Repository Explorer.

 

import ABSL;

import AP.FO.BusinessPartner.Global;

var query = Customer.Relationship.QueryByIdentification;

var resultData = query.ExecuteDataOnly();

// 2. Selection

var selectionParams = query.CreateSelectionParams();

selectionParams.Add(query.InternalID, "I", "EQ", "10062");

// Result

resultData = query.ExecuteDataOnly(selectionParams);

 

But the same code if i copy in After modify event i get error

Error 1 [Activate] Identifier 'QueryByIdentification' does not exist.

 

Please help.

 

Thanks and regards, Santosh


Viewing all articles
Browse latest Browse all 2720

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>