Solved

Using custom referenced fields in BPA/Workflow

  • 15 July 2022
  • 2 replies
  • 277 views

Userlevel 2
Badge +6

Hello,

 

I am trying to create a person address automatically from another custom page using BPA. 

It seems that BPA does not let me use the value of the custom field from my page, if its a referenced field. Other persistent fields seem to be working just fine.

 

Custom page :

 

Entity configuration :

 

BPA :

Error received : 

 

Has anybody encountered this problem ?

 

I am using  - IFS Aurena client version: 21.2.1.20211105061905.0

 

Regards,

Trishen

 

 

 

icon

Best answer by BawTrishM 22 August 2022, 14:59

View original

2 replies

Userlevel 7
Badge +21

Have you tried to hard code, just for testing purposes, the country code. Just currious if Workflow doesn't trip over the field format (maybe it needs to be uppercase or something like that). So is it correctly working if Country is hard coded and there is still ${Cf_Cve_Site_Code} in place?

Userlevel 2
Badge +6

Hello @eqbstal ,

 

Yes, hardcoding the country code works correcly.

We have identified the issue - referenced fields store the objkey of the refence and not the primary key.

 

The BPA was thus trying to parse the OBJKEY inside the Country code. To resolve this issue we have created a read only field in the source entity to store the Country code. We then use this value in BPA as parameter.

 


Regards,

Trishen

Reply