Skip to main content
Solved

FSM Connect - Pass a value as an attribute


AdrianEgley
Hero (Customer)
Forum|alt.badge.img+14

Hi,

I am currently testing a new API connection.

One of values is passed as an attribute and not as a child element.

     <content>
            <function controlid="12345">
                <create>

 

Can anyone tell me how I can replicate this in the XML Mapping.

 

Regards

Ady

Best answer by Paul Drennan

Hi Ady,

I have managed to create a mock up on my local machine as per below:
 


And the output this gives is:
 


This is on my FSM6U24 system but the above should work in FSM5.7 as well.

Let ​me know if the above works for you as well please.

Kindest regards,

​​​​​​​Paul​​​​​​

View original
Did this topic help you find an answer to your question?

7 replies

Forum|alt.badge.img+11
  • Hero (Employee)
  • 37 replies
  • May 2, 2023

Hi Ady,

You could possibly use XPath to extract the data, but with that small snippit on data I can’t say for sure.

Can you either give a full breakdown of the map and function here or send the data via email please so I can look at it more in detail?

Kindest regards,

 

Paul


AdrianEgley
Hero (Customer)
Forum|alt.badge.img+14
  • Author
  • Hero (Customer)
  • 172 replies
  • May 2, 2023

Hi Paul,

 

This is a link to the call I am attempting.

https://developer.intacct.com/web-services/your-first-api-calls/#get-an-api-session

 

In the image below it’s line 20 I am struggling to replicate.

In FSM the XML Map looks like;

With the ‘80’ sequence having the XML Template set to this for the function.

I hope this helps.

 

Ady


Forum|alt.badge.img+11
  • Hero (Employee)
  • 37 replies
  • May 2, 2023

Thanks Ady,

Is the GUID a value you already have in your DB from a previous integration call or are you attempting to retrieve the GUID in this transaction?

 

Kindest regards,

 

Paul


AdrianEgley
Hero (Customer)
Forum|alt.badge.img+14
  • Author
  • Hero (Customer)
  • 172 replies
  • May 2, 2023

Hi Paul,

 

I believe the GUID is going to be generated by FSM using the {guid} variable and we’ll pass that as part of the map.

 

Ady


AdrianEgley
Hero (Customer)
Forum|alt.badge.img+14
  • Author
  • Hero (Customer)
  • 172 replies
  • May 4, 2023

@Paul Drennan 

Don’t suppose you had anymore more thoughts on the above?

I have been trying to set the value using the guid variable in the XML Template as this worked for the API Session function.

 

Unfortunately the sequence is being bypassed when checking the integration log.

<content><function><getAPISession /></function></content>.

 

Ady


Forum|alt.badge.img+11
  • Hero (Employee)
  • 37 replies
  • Answer
  • May 9, 2023

Hi Ady,

I have managed to create a mock up on my local machine as per below:
 


And the output this gives is:
 


This is on my FSM6U24 system but the above should work in FSM5.7 as well.

Let ​me know if the above works for you as well please.

Kindest regards,

​​​​​​​Paul​​​​​​


AdrianEgley
Hero (Customer)
Forum|alt.badge.img+14
  • Author
  • Hero (Customer)
  • 172 replies
  • May 9, 2023

Paul,

 

That fantastic, thank you.

The XML is now posting the values in the format I need.

 

Regards


Ady


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings