CURL.SetSucceededEvaluate
-------------------------

Sets expression to be run when transfer succeeded.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [14.0](newinversion140.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CURL.SetSucceededEvaluate"; curl; Expression ) 

**MBS**( **"CURL.SetSucceededEvaluate";** /\* Sets expression to be run when transfer succeeded. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Expression**) /\* The expression to evaluate.  
Can be in local language of FileMaker Pro or english.   
For Server must always be in english.e.g. "Let ( $$Done = 1 ; 1 )" \*/ 

### 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](CURLPerform.md), [CURL.PerformAsync](CURLPerformAsync.md) and [CURL.PerformInBackground](CURLPerformInBackground.md).  
  
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](CURLPerform.md) 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](CURLRelease.md)\\"; $$ID $$)" ) \]  
### See also

- [CURL.GetSucceededEvaluate](CURLGetSucceededEvaluate.md)
- [CURL.GetSucceededFileName](CURLGetSucceededFileName.md)
- [CURL.Perform](CURLPerform.md)
- [CURL.PerformAsync](CURLPerformAsync.md)
- [CURL.PerformInBackground](CURLPerformInBackground.md)
- [CURL.Release](CURLRelease.md)
- [CURL.SetFinishedEvaluate](CURLSetFinishedEvaluate.md)

### Release notes

- **Version 14.0**
    - Added curl triggers for success and failure: [CURL.GetFailedEvaluate](https://www.mbsplugins.eu/CURLGetFailedEvaluate.shtml), [CURL.GetFailedFileName](https://www.mbsplugins.eu/CURLGetFailedFileName.shtml), [CURL.GetFailedScriptName](https://www.mbsplugins.eu/CURLGetFailedScriptName.shtml), [CURL.GetSucceededEvaluate](https://www.mbsplugins.eu/CURLGetSucceededEvaluate.shtml), [CURL.GetSucceededFileName](https://www.mbsplugins.eu/CURLGetSucceededFileName.shtml), [CURL.GetSucceededScriptName](https://www.mbsplugins.eu/CURLGetSucceededScriptName.shtml), [CURL.SetFailedEvaluate](https://www.mbsplugins.eu/CURLSetFailedEvaluate.shtml), [CURL.SetFailedScript](https://www.mbsplugins.eu/CURLSetFailedScript.shtml), [CURL.SetSucceededEvaluate](https://www.mbsplugins.eu/CURLSetSucceededEvaluate.shtml), and [CURL.SetSucceededScript](https://www.mbsplugins.eu/CURLSetSucceededScript.shtml).

### Blog Entries

- [New in MBS FileMaker Plugin 14.0](https://www.mbsplugins.de/archive/2024-01-23/New_in_MBS_FileMaker_Plugin_14/monkeybreadsoftware_blog_filemaker)
- [Background Log Custom function](https://www.mbsplugins.de/archive/2024-01-09/Background_Log_Custom_function/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.6pr5](https://www.mbsplugins.de/archive/2023-12-28/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 27th December 2023 , last changed 21st June 2025

  
[CURL.SetSSLBackend](CURLSetSSLBackend.md) - [CURL.SetSucceededScript](CURLSetSucceededScript.md)

[HTML Version](CURLSetSucceededEvaluate.shtml)