question

Urvi Sukharamwala avatar image
0 Likes"
Urvi Sukharamwala asked Jeanette F commented

export data from flexsim to API

Hello,

How to export flexSim dashboard data to API using flexsript?

FlexSim 24.1.0
developmentexport data
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Urvi Sukharamwala, was Vinay S's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Vinay S avatar image
0 Likes"
Vinay S answered Urvi Sukharamwala edited

You can use this below function to call API or New Method is also there; Flexsim HTTP Methods.

applicationcommand("sendhttprequest", verb, server, object, data, silent, result);

You can refer this old answer similar to your question: Web Communication Within FlexSim - FlexSim Community


If you want in detail, give more details and share an example model, I'll try to help you.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Urvi Sukharamwala avatar image Urvi Sukharamwala commented ·

Hi Vinay,

Thank you for the response. I am not sure how to implement this. I am attaching my python file for API, dummy text file from where the data is fetched and a dummy model where I have written flexscript to import data.

LBA_Output_CompleteJSON.txt

process_flow_egfcmain (1).py_2.fsm


0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.