Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CURL.SetSucceededEvaluate
Sets expression to be run when transfer succeeded.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 14.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "CURL.SetSucceededEvaluate"; curl; Expression ) More
Parameters
Parameter | Description | Example |
---|---|---|
curl | The CURL session handle. | $curl |
Expression | The expression to evaluate. Can be in local language of FileMaker Pro or english. For Server must always be in english. |
"Let ( $$Done = 1 ; 1 )" |
Result
Returns OK or error.
Description
Sets expression to be run when transfer succeeded.Works with CURL.Perform, CURL.PerformAsync and CURL.PerformInBackground.
In the expression the text $$ID$$ will be replaced when evaluated with the curl reference, so you can pass it to other functions if needed.
The transfer is successful if CURL.Perform internally returns no error. For http requests we also check response code for an error.
Examples
Set what to do when transfer succeeds:
Set Variable [ $r; Value: MBS("CURL.SetSucceededEvaluate"; curl; "MBS(\"CURL.Release\"; $$ID$$)" ) ]
See also
- CURL.GetSucceededEvaluate
- CURL.GetSucceededFileName
- CURL.Perform
- CURL.PerformAsync
- CURL.PerformInBackground
- CURL.Release
- CURL.SetFinishedEvaluate
Release notes
- Version 14.0
- Added curl triggers for success and failure: CURL.GetFailedEvaluate, CURL.GetFailedFileName, CURL.GetFailedScriptName, CURL.GetSucceededEvaluate, CURL.GetSucceededFileName, CURL.GetSucceededScriptName, CURL.SetFailedEvaluate, CURL.SetFailedScript, CURL.SetSucceededEvaluate, and CURL.SetSucceededScript.
Blog Entries
- New in MBS FileMaker Plugin 14.0
- Background Log Custom function
- MBS FileMaker Plugin, version 13.6pr5
This function is free to use.
Created 27th December 2023, last changed 15th January 2024