web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Dynamically add key va...
Power Automate
Answered

Dynamically add key value in custom object

(0) ShareShare
ReportReport
Posted on by 143

Hi All,

 

I have dictionary variable named diCommon , diBotConfig  which consists key name as stEachKet value name as %prompt_assignment% I want dynamically add key value pair into diCommon, diBotConfig   . This is how I assign (code below)... when I show the result, I can't see key pair..... It coming key value pair in display message shown ( Capture1.png)... can anyone please help why custom object diCommon, diBotConfig    doesn't showing key pair inside?

Code:
IF stConfigBotName = $'''Common''' THEN SET diCommon[stEachKey] TO prompt_assignment ELSE SET diBotConfig[stEachKey] TO prompt_assignment END

dicommon Results.PNG
Capture1.PNG
diBotConfigResults.png
  • Verified answer
    sahachiranjit32 Profile Picture
    143 on at

    Figured out, My Key string has newLine in them that's why it is not displaying key pairs... Trimmed the text and it is working

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 211 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 190

Last 30 days Overall leaderboard