cancel
Showing results for 
Search instead for 
Did you mean: 

Service Layer BusinessPartner DocEntry field not exposed

vangelis_sanchoyerto
Participant
0 Kudos

In one of our projects we require to access the DocEntry field of the BusinessPartners (OCRD) entity.

The problem is that this field is not exposed in ServiceLayer only the CardCode as "key field". This was possible using DI API...


Is there any way to recover the field or will it be exposed in future versions?

Thanks beforehand,

Vangelis Sanchoyerto

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi vangelis.sanchoyerto,

What is meant by "This was possible using DI API" ?

Were you able to use DocEntry in DI API? If yes, can you share an example or sample?

As far as I have checked, this is not exposed in DI API too.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

vangelis_sanchoyerto
Participant
0 Kudos

ankit.chauhan1 We meant using the Recordset.DoQuery function in DI API, you can get the DocEntry field there. Also available in Sap user queries.

Accepted Solutions (1)

Accepted Solutions (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert

Hi vangelis.sanchoyerto,

Yes. Using DoQuery() method you can access any column in the table however that does not mean that you can use that in DI API or Service Layer too.

DocEntry column related property is not exposed in DI API. Therefore, you will not be able to use it in Service Layer too.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

vangelis_sanchoyerto
Participant
0 Kudos

In that case you are right, in the end we used the CardCode as key element. Thank you.

Answers (1)

Answers (1)

vangelis_sanchoyerto
Participant
0 Kudos

We saw the posibility of using Custom Views but were expecting baseline support for this field so there is not the necessity to create a custom view only to expose one field...

https://blogs.sap.com/2018/02/01/new-sap-business-one-semantic-layer-view-exposure/