cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Refresh Context on transaction start - API

ColruytTeam
Honored Contributor

Hi Community,

We are using VBScript in our external macros (For example: website generation script). If the private workspace is already existed, and if we start the script with same user, it si not taking latest changes.   Do we have some API method in VBScript that refreshes the context (loading other user's dispatched changes) of a user immediatly after starting the transaction.

 

Thanks for your help.

 

 

 

Colruyt Team
2 Replies

Hi Jerome

 

How can we refresh a transaction from the context of a Workflow Action using the existing transaction, rather than creating it?

jhorber
MEGA
MEGA

Hello Colruyt Team

 

When connecting with API in private workspace, you use an object MegaTransaction.

Several methods are available:

  • Dispatch: to make the workspace public
  • Abort: to discard the workspace
  • Refresh: to refresh the workspace (without dispatching it)

See also this KB http://community.mega.com/t5/custom/page/page-id/mega-kb-solution?sid=501D0000000nX4YIAU

 

Jerome