Skip to main content
Post a question

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id : GNpKsSuguOKkdC31aW+mDj
Finance | Project Operations, Human Resources, ...
Answered

How to pass the value in the container as double quotes for each value

Like (0) ShareShare
ReportReport
Posted on 1 Mar 2023 07:31:25 by 524

Hi Guys,

When I am converting sting to container using the function "str2con"

It is passing like [123 , 456]

but what I need is ["123", "456"]

Can you please help me to solve this.

  • Verified answer
    GirishS Profile Picture
    27,823 Moderator on 01 Mar 2023 at 09:02:30
    RE: How to pass the value in the container as double quotes for each value

    Instead of converting string to container you can directly insert string values to list.

    List values = new List(Types::string);
    values.addstart("123");
    values.addStart("456");
    // You can pass this list values directly instead of converting them to container and then to list

    Thanks,

    Girish S.

  • Adam123 Profile Picture
    524 on 01 Mar 2023 at 08:57:07
    RE: How to pass the value in the container as double quotes for each value

    Hi Girish

    I will input the str parameter as - 123 , 456

    and then I will convert into container using function "str2con".

    and then I will convert into list using function "con2list"

    and finally I will send the value as list in  request JSON.

  • Verified answer
    GirishS Profile Picture
    27,823 Moderator on 01 Mar 2023 at 08:48:52
    RE: How to pass the value in the container as double quotes for each value

    Hi jenifer,

    Can I know why you want to save them with double quotes in container?

    If you want that, while getting values from container you can use int2str function to convert them to string field, right?

    Thanks,

    Girish S.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,884 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,760 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans
Loading complete