Skip to Content
0
Nov 04, 2020 at 11:40 AM

Mapping SalesOrderCRMCreateRequest fields in BPM

34 Views

Hi all,

I am trying to create an input mapping in a BPM. I need to map Email URI from SalesOrderCRMCreateRequest to Email URI in BusinessPartnerCRMElementsByElementsQuery. I have tried many things but I keep running into the same two issues, and I'm at a loss what to try next.

The two problems:

1. They two URIs are of a different type (EmailURI vs WebURI). I need to change 1 to be similar to the other, but how can I do this in BPM? I try to do it with 'cast as' but can't get rid of the errors.

2. Email URI in SalesOrderCRMCreateRequest is a field under node Party, but I only want the Email URI if the RoleCode is 00000015. I also believe since it's a list or array I need to get the first element.

Am I correct that EmailURI in SalesOrderCRMCreateRequest is an array and that I need to typecast EmailURI from BusinessPartnerCRMElementsByElements to be the same as in SalesOrderCRMCreateRequest (i.e. both EmailURI)?

See also below images.

The input mapping I need. Left is from SalesOrderCRMCreateRequest, type EmailURI. Right is type WebURI.

My best idea so far:

The [0] is not accepted and this lacks any type casting.

Attachments

bpmmap1.png (106.7 kB)
bpmmap2.png (23.2 kB)