Function: getProgressOperationID

As result you get the operation ID. If the process is still active, you receive the percentage value of progress. When the process is complete and therefore at 100%, in addition you receive a result array, which contains a status + text and the reference IDs for each data record.

Program example: Processing Response of getProgressOperationID
<?php

    # Your source code before
    # ...

    $result = json_decode ( $response, true );

    if ( intval ( $result['status'] ) == 1 )
    {
        echo print_r ( $result['operationStatus'], 1);
    }
?>
Result example for getProgressOperationID
Array
(
    [0] => Array
        (
            [apiOperationUid] => 37
            [percent] => 100
            [operations] => Array
                (
                    [0] => Array
                        (
                            [command] => insert
                            [message] => 1 record inserted, 0 errors.
                            [records] => Array
                                (
                                    [0] => Array
                                        (
                                            [status] => ok
                                            [message] => Data record inserted sucessfully.
                                            [errorcode] => 0
                                            [referenceUid] => 123
                                            [contentdockRecordUid] => 21988
                                        )
                                )
                        )

                    [1] => Array
                        (
                            [command] => 
                            [conditions] => Array
                                (
                                    referenceUid: 124
                                 )                                            
                            [message] => 1 record updated, 0 errors.
                            [records] => Array
                                (
                                    [0] => Array
                                        (
                                            [status] => ok
                                            [message] => Data record updated sucessfully.
                                            [errorcode] => 0                                           
                                            [referenceUid] => 124
                                            [contentdockRecordUid] => 21987
                                        )
                                )
                        )

                    [2] => Array
                        (
                            [command] => delete
                            [conditions] => Array
                                (
                                    color: #8120fc
                                 )                                            
                            [message] => 2 records deleted, 0 errors.
                            [records] => Array
                                (
                                    [0] => Array
                                        (
                                            [status] => ok
                                            [message] => Data record deleted sucessfully.
                                            [errorcode] => 0
                                            [referenceUid] => 126
                                            [contentdockRecordUid] => 21989
                                        )
                                    [1] => Array
                                        (
                                            [status] => ok
                                            [message] => Data record deleted sucessfully.
                                            [errorcode] => 0
                                            [referenceUid] => 129
                                            [contentdockRecordUid] => 21993
                                        )

                                )
                        )

                )
        )
)

More information


Feedback or Questions

We are always happy to help you with questions about the code or other questions.

Was this page helpful? Yes No

Topics on this page