Jump to content

How to call function?


This topic is 1672 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

Hello,

Apologies for my silly question I am very much a beginner. I have downloaded the BaseElements plugin, specifically to make use of this https://baseelementsplugin.zendesk.com/hc/en-us/articles/204700538-BE-ExportFieldContents.

 

BE_ExportFieldContents, now this supposedly will allow me to export the contents of the container field using a server script. But I am at a total loss on how this will work? How do I call the function? As I can only see it in the calculations? So how would I write a script that calls this function?

 

Again, I'm sorry for the silly question but I'm baffled.

Thanks in advance.

Link to comment
Share on other sites

Hello.

You have to use Set variable, something like

Set Variable [ $returnedValue ; Value: BE_ExportFieldContents (field ; $folderPath & "/" & $filename ) ]

You will get empty for success, or ? for failure in $returnedValue.

Error codes can be retrieved with BE_GetLastError

 

  • Thanks 1
Link to comment
Share on other sites

  • 1 year later...
1 hour ago, noobnoob said:

what script step do you need to use to call that variable and effectively execute the export?

None. The export is executed when the function is evaluated. If you set a variable using the function (as suggested above), then the export will be executed when the Set Variable step is executed. 

 

Link to comment
Share on other sites

This topic is 1672 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.