Coder Social home page Coder Social logo

smtorlmassetconversiontool's Introduction

SmToRlmAssetConversionTool

This project is a reference implementation to convert Assets with a Subscription Management (SM) data-shape to conform to the Revenue Lifecycle Management (RLM) data-shape so that Assets can continue to be amended, renewed, and/or cancelled in RLM.

Requirements

Salesforce Org Licenses and Permissions

  • Active Subscription Management license
  • Active Revenue Lifecycle Management license
  • CalmSObjectAccess organization permission enabled

User Permissions and Entity Access

  • “Access Lifecycle-Managed Assets” user permission enabled

  • Read access for the following entities and fields:

    • Asset Action
      • AssetId
      • CategoryEnum
    • Order Item
      • UnitPrice
      • NetUnitPrice
      • ListPrice
      • TotalPrice
      • TotalLineAmount
      • ObligatedAmount
      • PeriodBoundary
      • PeriodBoundaryDay
      • PeriodBoundaryStartMonth
      • PricingTermCount
      • PricebookEntryId
      • ProductSellingModelId
      • ProrationPolicyId
      • TaxTreatmentId
    • Order Item Relationship
      • AssociatedOrderItemPricing
      • AssociatedQuantScaleMethod
    • Product Related Component
      • ParentProductId
      • ChildProductId
  • Update access for the following entities and fields:

    • Asset Action Source
      • UnitPrice
      • NetUnitPrice
      • ListPrice
      • TotalPrice
      • TotalLineAmount
      • ObligatedAmount
      • PeriodBoundary
      • PeriodBoundaryDay
      • PeriodBoundaryStartMonth
      • PricingTermCount
      • PricebookEntryId
      • ProductSellingModelId
      • ProrationPolicyId
      • TaxTreatmentId
    • Asset Relationship
      • RelatedAssetPricing
      • RelatedAssetQtyScaleMethod
      • ProductRelatedComponentId

Limits

  • 0 < assetIds.size() <= 200
  • If the Id of an Asset belonging to a collection of bundled Assets is included in the input to assetIds, then the Ids of ALL Assets in the associated bundle must be included in assetIds.

Notes

  • Users can change or disable the validations associated with the above access checks and limits by making changes to their functions within the SmToRlmAssetConverter and SmToRlmAssetConverterUtil classes. Without these validations in place, Salesforce platform and Apex execution limits are still enforced and users must ensure their use of the SmToRlmAssetConversionTool is in compliance.
  • While the project performs some validations of the input data before converting the Assets, these validations aren't exhaustive, and they offer no guarantee of success. Additionally, as with any data migration, there’s a potential for data corruption resulting from the conversion, and validations offer no guarantee against this. We strongly advise users to extensively test their use of the SmToRlmAssetConversionTool in sandbox environments and ensure the operation executes as expected before using it live in production. This project is not a replacement for a thorough testing process that the users should pursue.

Salesforce DX Project: Next Steps

Now that you’ve created a Salesforce DX project, what’s next? Here are some documentation resources to get you started.

How do you plan to deploy your changes?

Do you want to deploy a set of changes, or create a self-contained application? Choose a development model.

Configure Your Salesforce DX Project

The sfdx-project.json file contains useful configuration information for your project. See Salesforce DX Project Configuration in the Salesforce DX Developer Guide for details about this file.

Read All About It

How to invoke this tool in an Execute Anonymous window

  • Open Execute anonymous window on developer console.
  • Replace <List of Asset Ids> with a List of Asset Ids you want to convert and call the convert function. For example:
SmToRlmAssetConverter converter = new SmToRlmAssetConverter();
converter.assetIds = <List of Asset Ids>;
converter.convert();
  • Open debug logs to verify result of execution.
  • On success, check the fields on Asset Action Sources and Asset Relationships of converted Assets to verify fields are correctly populated.

smtorlmassetconversiontool's People

Contributors

brian-sprague2 avatar

Watchers

Demian Brecht avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.