cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Abhilash
Helper II
Helper II

Collections

i'm having 2 entities that are related.. i want to create collection which has all the records from parent table and Dealer code field record from child table.. but while i'm trying it is related to parent table.. i want to store value instead of relations...

 

 

ForAll('Dealer User Mappings',Collect(Responsible,{User:'User ID'.'Full Name',DM:'Dealer Master ID'.'Dealer Master ID',DU:'Dealer Masters'.'Dealer Code'}))

 

This is my code... i want DU to be stored values of dealermaster.dealer code instead of relation in collections

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-siky-msft
Community Support
Community Support

Hi @Abhilash ,

Could you share more about your scenario? 'Dealer Masters' is the lookup field in 'Dealer User Mappings' entity, right?

What does the relation mean?

 

If you just want to add Dealer code field from the child record, please try to use AddColumns function.

ClearCollect(Responsible,AddColumns('Dealer User Mappings',"DU",'Dealer Masters'.'Dealer Code'))

Hope this helps.

Sik

View solution in original post

1 REPLY 1
v-siky-msft
Community Support
Community Support

Hi @Abhilash ,

Could you share more about your scenario? 'Dealer Masters' is the lookup field in 'Dealer User Mappings' entity, right?

What does the relation mean?

 

If you just want to add Dealer code field from the child record, please try to use AddColumns function.

ClearCollect(Responsible,AddColumns('Dealer User Mappings',"DU",'Dealer Masters'.'Dealer Code'))

Hope this helps.

Sik

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (80,478)