Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Populate a field by concatenation of other field while creating a record via plugin

(0) ShareShare
ReportReport
Posted on by 5

Plugin to populate a text field by concatenation of two fields not working.

  • Verified answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Populate a field by concatenation of other field while creating a record via plugin

    Hi,

    You have written your code on Pre-operation plugin?

    Below code should work

    if(target.Attributes.Contains("FIELD_1_Schema_Name") && target.Attributes.Contains("FIELD_2_Schema_Name"))

    {

    target["FIELD_3_Schema_Name"]=target["FIELD_1_Schema_Name"]+target["FIELD_2_Schema_Name"];

    }

    Please mark my answer verified if i were helpful

  • Miguel Lourenco Profile Picture
    on at
    RE: Populate a field by concatenation of other field while creating a record via plugin

    Hi Saksham,

    Please show us how are you doing this and what error you're having.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 149 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 61 Most Valuable Professional

#3
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 53 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans