AnsweredAssumed Answered

Get ( DocumentsPath ) not working with CWP PHP newPerformScriptCommand

Question asked by fmdataweb on Oct 16, 2014
Latest reply on Oct 16, 2014 by user19752

I'm using the FileMaker PHP API to perform a FileMaker script, i.e. like this:

 

$scriptObject = $fm->newPerformScriptCommand($layoutName, $scriptName, $scriptParam);

// Execute the script

$scriptResult = $scriptObject->execute();

 

The FileMaker script uses the result of the Get ( DocumentsPath ) function to determine a location on the server, however I've just noticed this script is returning an empty result for the Get ( DocumentsPath ) function.

 

I've tested a few other Get functions which are returning a result, including Get ( TemporaryPath ) and Get ( AccountName ) however Get ( DocumentsPath ) is not returning a result.

 

At this stage I'm not sure if this is expected behaviour or not? I noticed in the FileMaker Pro 13 help that this function is not supported under FileMaker WebDirect, but it makes no mention of Custom Web Publishing clients.

Outcomes