Options
All
  • Public
  • Public/Protected
  • All
Menu

Exposes SDK functions for Versioning functionalities

Hierarchy

  • Versioning

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

config

Methods

createVersion

  • createVersion(version: Version): Promise<any>
  • Function to create a newversion of an object.

    example
    const versionSdk = VlocitySDK.productconsole.getInstance().getVersioningSdk();
    const version = versionSdk.getVersionObject();
    version.name="Version 1";
    version.objectAPpiName="Product2";
    version.objectId = "00DFEV23423";
    versionSdk.createVersion(version).then(result=>{
     Logger.info("create version remote action success " + result);
    }).catch(error=>{
     Logger.info("create version remote action failure " + error);
    })
    throws

    {Error} - "Object Id and Object name are required to get object details by id."

    Parameters

    Returns Promise<any>

getVersionObject

  • Creates an instance of Version object and returns it.

    example
    const versionSdk = VlocitySDK.productconsole.getInstance().getVersioningSdk();
    const version = versionSdk.getVersionObject();
    version.name = "Version 1";

    Returns Version

Generated using TypeDoc