Skip to main content
Conga Support

Create Billing

The use of JavaScript in Conga solutions is considered an advanced method, requiring JavaScript knowledge, and is not supported by Conga or the Conga support team. You are welcome to use this feature at your own risk.

Follow these steps to create the custom action:

  1. Click Conga Grid Setup.
  2. Select the object for which you want to create the custom action.
  3. Select the object Features tab.
  4. Click New Custom Action. The Custom Action screen appears.
  5. Delete the sample code from the Javascript field.
  6. Copy and paste the following code into the Javascript field.
  7. Copy the itemID value and paste it as the Action Name.
  8. Click OK.
crmc.require(['sfdc', 'KendoPopup'], function (sfdc, popup) {
        "itemID": "createOrdersFromProjects",
        "isBatchAddItem": true,
        "isAvailable": function (context) {
          // This function is called before the action item is displayed and returns a boolean if the item should be displayed
          // By default determine availability based on Feature Security for this action
            var isEnabled = this.featureSecurity.getSetting(, this.itemID) !== false;
            // Only allow batch adding from Accounts object for now
            var isOpportunity = == "Opportunity";
            var multipleSelected = context.selectedRows && context.selectedRows.length > 0;
            return isOpportunity && isEnabled && multipleSelected;
        "getLabel": function (context) {
          // This function returns the display label of the action item and is called before the item is shown
          return "Create Billing";
        "createSubmenuItems": function (context) {
          // If this function returns additional action item objects, they will appear as submenu items
          return [];
        "click": function (context) {
            if(context.selectedRows.length <= 5){
                  var ids = [];
                  var submitUrl = "/apex/acctseed__BillingFromOpportunity?id="
                  for (var i = 0; i < ids.length; i++) {
             + ids[i]);
            } else {
                popup.popup("Record Selection", "Currently, there is only support for 5 max records per batch.");
  • Was this article helpful?