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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
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 534

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.

I have the same question (0)
  • Verified answer
    GirishS Profile Picture
    27,827 Moderator on at

    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.

  • Adam123 Profile Picture
    534 on at

    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,827 Moderator on at

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans