Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

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

(0) ShareShare
ReportReport
Posted on 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
    GirishS 27,821 Super User 2024 Season 1 on at
    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
    Adam123 524 on at
    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
    GirishS 27,821 Super User 2024 Season 1 on at
    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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,868 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans