• Vikash Tiwary
  • NEWBIE
  • 310 Points
  • Member since 2013
  • Senior Member Technical Staff
  • AthenaHealth


  • Chatter
    Feed
  • 9
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 14
    Questions
  • 54
    Replies
Hi have created a dev org and and activated "my domain".
Now I would like to change the domain name again, but it is greyed out.
How can I change the name?

Thanks,
Trailblazer Tom
  • October 10, 2018
  • Like
  • 0
Can anyone help me , whenever lead is created then we have to create a task by assigning to particular user with due date  using workflow. So, now I want to populate lead fields like name,email etc into task description field. 
 Can I achieve this without creating another workflow on task object?  
Is it possible to do only with workflow ?  
Thank you in advance 
Hi, Could anyone tell me whether this is possible?
I'm wanting to check whether an account name already exists within my SF database.
Let's say I have an existing account named "Test Computers", when I submit a search for 'Test' only I DON'T want Test Computers to be included in the results.

"FIND {"Test"} IN Name FIELDS RETURNING account (account.Id)"

Thanks,

Mark
Hi all!
I create a new custom button with onclick javascript. And when I trying to get Id of current record, I get a message: "a04w000000OXtAN is not defined", where a04w000000OXtAN - Id of current record.
Here my code:
{!REQUIRESCRIPT('/soap/ajax/29.0/connection.js')}
{!REQUIRESCRIPT('/soap/ajax/29.0/apex.js')}


try{
var user = sforce.connection.getUserInfo();
var STE = new sforce.SObject("Object__c");
STE.Id={!package_prefix__Object__c.Id};
}
catch(er)
{
alert(er);
}

 
  • October 25, 2014
  • Like
  • 0
Hi folks,
   Can anyone tell me how to collect all Ids using recursion?
Here's my code:

public class ParrentIdClass2 {
   
   public static List<Id> getParrentId(Id i){
        String ParentUserName;
        List<Id> ParentUserId=new List<Id>();
        User ur = new User(id=i);
        ur = [select ur.Id, ur.Name, ur.ManagerId from User ur where ur.Id =: i];
      
        System.debug('UrId='+ur.Id);
        ParentUserId.add(ur.Id);
        System.debug('UrName='+ur.Name);
        System.debug('UrManagerId='+ur.ManagerId);
       
        if(ur.ManagerId != null){ 
          
   ParentUserId.addAll(getParrentId(ur.ManagerId));
           
   }
 
 
        return ParentUserId;
 
}
}

They above code doesnt collect all iids
Please Help!
Hi folks,
          Can anyone tell me the soql query getting manager id ??/
like user-->manager-->manager's manager and user1-->manager1-->manager of manager1

I wanna all managers id based on user 

Thanks in advance
Karthick


Hi, 

  There are few javascript supporting files uploaded in status resources please suggest me how to call. 

How to call below link in visualforce
 <script src="../assets/js/jquery-ui.custom.min.js"></script>

I am calling css files as mentioned below. 
<apex:stylesheet value="{!URLFOR($Resource.assets, 'assets/css/bootstrap.min.css')}" />

Thanks

Sudhir

Hi folks
           Can anyone tell me how to validate if the rich text area has image and html tag


Thanks in advance
Karthick
Hi Everybody,
         Can anyone give me the code for coping the rich text area content to Text area field after save. The text area should not contain any html tags in it


Please Help!

Hello Guys, I observed that salesforce billing package does not have button to cancel all invoices at one go. Earlier before 7.0 version they had a button on invoice run to cancel all invoices which is discontinued now. They have 'cancel and rebill' option over individual invoices. My use case is to cancel all invoices at one go, any recommendation or any Api exposed by salesforce billing to do the same?

I found a method within the package which accepts single invoice Id to cancel at a time but i am afraid how will it work for bulk invoices. Please suggest
I am facing cross domain error on ajax request in javascript

Ajax Request
 
$.ajax({
                    url:"../oppitm/lineitemsort.jsp?id={!oppID}",
                    contentType:"text/html",
                    xhrFields:{withCredentials:true}
                    }).done (
                    function(data){console.log(data)});
Error
XMLHttpRequest cannot load https://ap1.salesforce.com/oppitm/lineitemsort.jsp?id=00690000007jIM1. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://nsp-demo.ap1.visual.force.com' is therefore not allowed access.

I have enabled below origin urls in CORS
  • https://*.salesforce.com
  • https://ap1.salesforce.com
  • https://nsp-demo.ap1.visual.force.com
Please suggest or any workarounds how this can be resolved
EasyAutocomplete plugin works well as long as I pass the data directly but it do not work when we load the data via remote method. I am using this in visualforce page. Below is the error I get in console. Please help!!

WARNING: Fail to load response data.
<script>
    var options = {

          data: function(phrase) {
            var str = '[{"name": "Afghanistan", "code": "AF"}, {"name": "Aland Islands", "code": "AX"}]'; 
            var obj = JSON.parse(str);
            return obj ;
          },

          getValue: function(element) {
            return element.name;
          },

          ajaxSettings: {
            dataType: "json",
            method: "POST",
            data: {
              dataType: "json"
            }
          },

          preparePostData: function(data) {
            data.phrase = $("#inputId").val();
            return data;
          },

          requestDelay: 400
        };


    $("#inputId").easyAutocomplete(options);
</script>


 
Hello,  My requirement is to get the XML from salesforce database. When I tried exposing the webservice over sites it contributes to page view count which I do not want to increase. Alternatively, if we tried save page view count then we needed to authorize the user and then use access token in each API call to access webservice and get the XML directly but this contributes to API count. Because I am already near to API count and page views I want some alternative solution. I am open to use some middleware like Heroku if required.

Thank you in advance!!
Hi All,

I have one email template which sends blank email body when i click on 'send test and verify' button available within email template. I could figure out the reason for this, data loads in table through script which appears fine in HTML preview but it sends blank email. When i hardcode the data directly within some HTML elements it sends. Below is my code please see once and let me know where am i doing wrong?

<messaging:emailTemplate subject="Quote {!relatedTo.SBQQ__PrimaryQuote__r.Name} for {!relatedTo.Account.Name} requires approval. This Opportunity is owned by {!relatedTo.Owner.Name}." recipientType="User" relatedToType="Opportunity">
    
    <messaging:htmlEmailBody >
        <script src="{!URLFOR($Resource.AutoCompleteComboBox, 'jquery-1.7.2.js')}"></script>
        <link rel="stylesheet" type="text/css" href="{!URLFOR($Resource.TrNgGrid, 'trnggrid/css/bootstrap.min.css')}"/> 
        <link rel="stylesheet" type="text/css" href="{!URLFOR($Resource.TrNgGrid, 'trnggrid/css/treeGrid.css')}"/> 
        <script src="{!URLFOR($Resource.TrNgGrid, 'trnggrid/js/angular.js')}"/>
        <script src="{!URLFOR($Resource.TrNgGrid, 'trnggrid/js/tree-grid-directive.js')}"/>    
    <style>
        th {
            white-space: nowrap;
            background: #F2F3F3;
            border-width: 0 0 1px 1px;
            border-color: #E0E3E5;
            color: #000;
            padding: 5px 2px 4px 5px;
        }

        th span {white-space: nowrap;
            background: #F2F3F3;
            border-width: 0 0 1px 1px;
            border-color: #E0E3E5;
            color: #000;
            font-size: .9em;
            font-weight: bold;
            padding: 5px 2px 4px 5px; }
        .tree-grid i.indented {
          padding: 2px;
          display: none;
        }
        body {
          font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
          font-size: 12px;
        }
    </style>
    <script>
    console.log('enter');
        (function() {
  var app, deps;

  deps = ['treeGrid'];

  app = angular.module('treeGridTest', deps);

  app.controller('treeGridController', function($scope, $timeout) {
    var tree;
     
    var rawTreeData = [{"VPAuthority":20000.0000,"Total":20000.00,"SalesPrice":20000.00,"RepAuthority":20000.0000,"Quantity":1.00,"qlsId":"a3RM00000003uJOMAY","ProductName":"Charge Integrity","ParentId":null,"MgrAuthority":20000.0000,"ListPrice":20000.0000},{"VPAuthority":8000.0000,"Total":8000.00,"SalesPrice":8000.00,"RepAuthority":8000.0000,"Quantity":1.00,"qlsId":"a3RM00000003uJPMAY","ProductName":"Implementation Fee","ParentId":"a3RM00000003uJOMAY","MgrAuthority":8000.0000,"ListPrice":8000.0000},{"VPAuthority":0.0000,"Total":0.00,"SalesPrice":0.00,"RepAuthority":0.0000,"Quantity":1.00,"qlsId":"a3RM00000003uOrMAI","ProductName":"Clinical Link Basic","ParentId":null,"MgrAuthority":0.0000,"ListPrice":0.0000},{"VPAuthority":0.0000,"Total":0.00,"SalesPrice":0.00,"RepAuthority":0.0000,"Quantity":15.00,"qlsId":"a3RM00000003uOsMAI","ProductName":"Clinical Link - Monthly Block Pricing (Separate)","ParentId":"a3RM00000003uOrMAI","MgrAuthority":0.0000,"ListPrice":0.0000},{"VPAuthority":0.0000,"Total":0.00,"SalesPrice":0.00,"RepAuthority":0.0000,"Quantity":0.00,"qlsId":"a3RM00000003uOtMAI","ProductName":"Implementation Fee","ParentId":"a3RM00000003uOsMAI","MgrAuthority":0.0000,"ListPrice":0.0000}];
   // console.log('strQLsJson=====',rawTreeData);
   // rawTreeData = JSON.parse(rawTreeData);
    var myTreeData = getTree(rawTreeData, 'qlsId', 'ParentId');
   
   $scope.tree_data = myTreeData; 
   $scope.my_tree = tree = {};
   $scope.expanding_property = {
            field: "ProductName",
            displayName: "Product Name"};
    $scope.col_defs = [
        
        { field: "Quantity"},
        { field: "SalesPrice", displayName: "Sales Price"},
        { field: "ListPrice", displayName: "List Price"},
        { field: "SalesPrice", displayName: "Sales Price"},
        { field: "Total", displayName: "Total"},
        { field: "RepAuthority", displayName: "Rep Authority"},
        { field: "MgrAuthority", displayName: "Mgr Authority"},
        { field: "VPAuthority", displayName: "VP Authority"}
        //{ field: "Approval" }

    ];
    $scope.my_tree_handler = function(branch){
        console.log('you clicked on', branch)
    }
    
function getTree(data, primaryIdName, parentIdName){
    if(!data || data.length==0 || !primaryIdName ||!parentIdName)
        return [];

    var tree = [],
        rootIds = [],
        item = data[0],
        primaryKey = item[primaryIdName],
        treeObjs = {},
        parentId,
        parent,
        len = data.length,
        i = 0;

    while(i<len){
        item = data[i++];
        primaryKey = item[primaryIdName];           
        treeObjs[primaryKey] = item;
        parentId = item[parentIdName];

        if(parentId){
            parent = treeObjs[parentId];    

            if(parent.children){
                parent.children.push(item);
            }
            else{
                parent.children = [item];
            }
        }
        else{
            rootIds.push(primaryKey);
        }
    }

    for (var i = 0; i < rootIds.length; i++) {
        tree.push(treeObjs[rootIds[i]]);
    };
    console.log('exit');
    return tree;
}

  });

}).call(this);

    
    </script>
    <body ng-app="treeGridTest" ng-controller="treeGridController" style="margin:20px">
    
    <div ng-model="showMinDir" ng-value="false">
        <div ng-show="!showMinDir">
            <tree-grid tree-data="tree_data" tree-control="my_tree" col-defs="col_defs" expand-on="expanding_property" on-select="my_tree_handler(branch)" expand-level="5" icon-leaf= "glyphicon glyphicon-globe"></tree-grid>
        </div>
    </div>
 

    <div>Hii</div>
  </body>

       
    </messaging:htmlEmailBody>
 </messaging:emailTemplate>
Hello Everone!!

I want to build few really cool components for ligtning. Please suggest me with some ideas which i can go with. Any ideas which you feel i can go with is welcomed.

Thanks much!!
 
blinkCustomConsoleComponentButtonText method starts blinking but i am not able to find out how do we stop the blinking which is initiated by standard method "blinkCustomConsoleComponentButtonText". Is there any similar method available to stop its blinking?

Thanks for any help!! 
Hello 

I am in need of org chart with below features:

1. Responsive and Dynamic
2. Navigator which says where we are within the context of the overall Org Chart.
3. Zoom in / Zoom out features. For example: As it appears in google map.
4. Expand/Collapse icon attached to each Name card within the org chart.

I can find the org charts for each of these features but separately. All the features are not embedded in to one. Please let me know if any such org chart exists. 

Thanks

 
 
Hello,
I want to display richtext area field value to be rendered without the HTML tags but i am not able to. I have tried with both of the below lines.
<apex:outputtext value="{!objWorkFeedback.Feedback}" escape="false"/>
<apex:outputfield value="{!objWorkFeedback.Feedback}"/>

I am not sure what the reason could be? Any suggestions or workarounds ?

Thanks is advance

 
Hello,

I could not find any official document about how to customize Work.com native features in apex. I have a query, how do i get performance summary displayed under below tabs based upon user role(i.e employee, manager, executive and CEO).

Action Required
Completed Summaries - Self
Completed Summaries - Others
Dismissed

Any help related to this is requested.

Thanks in advance.
Hi,

In div i have list of icons and on the same div i have overflow auto. When I hover over the icons after scrolling the mini page hover does not occur in accordance with the icon hovered . Below is the code i have been using.

<div style="height: 136px;overflow-y: auto;width: 127px; position:relative;">
<apex:repeat value="{!lstContactsShowOnPage}" var="cnt" >
         <a href="/{!cnt.Id}" id="hover{!cnt.Id}"
                                     style= "position:absolute;"
                                     onblur="LookupHoverDetail.getHover('hover{!cnt.Id}').hide();"
                                     onfocus="LookupHoverDetail.getHover('hover{!cnt.Id}', '/{!cnt.Id}/m?retURL=%2F{!cnt.Id}&isAjaxRequest=1').show();"
                                     onmouseout="LookupHoverDetail.getHover('hover{!cnt.Id}').hide();"
                                     onmouseover="LookupHoverDetail.getHover('hover{!cnt.Id}', '/{!cnt.Id}/m?retURL=%2F{!cnt.Id}&isAjaxRequest=1').show();">
            <img src="{!URLFOR($Resource.PrepareContract,'images/Desc.png')}"></img>
       </a><br/>
  </apex:repeat>
  </div>
User-added image

Thank you.

Hello Everyone,

 

When we refresh Sub tab by refreshSubtabById(), it also refreshes custom console component in sidebar which is not desired in my case. Even refreshSubtabById() documentation in "Service Cloud Console Integration Toolkit Developer's Guide" states as below given:

"Note that this method doesn't refresh sidebars or custom console components. For more information, see Custom Console
Components Overview in the Salesforce online help."

 

Any help to prevent custom console component reload on refreshing subtab will be much appreciated.

 

Thanks.

Hi 

 

I have built custom console Component and included it in Case page layout. This Component opens up in sidebar  as per expectation but only when Case is opened in primary tab, when we open the same in Subtab Console Component do not appear. As a result while Chat is being initiated opened Case as a subtab do not show that console Component.

Here I need to Show Custom Console Component within the Subtabs just like Suggested article.

 

Any help regarding this would be highly appreciated.

 

Thanks.

       

Hi All,

 

I need to set the case owner to the agent who accepts the chat in service cloud console.

Also when chat is transferred to other agent owner needs to be set to  that agent.

 

Any help/thoughts would be highly appreciated.

 

Thanks.

Can you think of a good reason about why on eath would a Certified Technical Architect create a Workflow without any Action(s) related to it?

I am reluctant to accept that this is just a garbage metadata.

Thank you.

 
  • October 11, 2018
  • Like
  • 0
i need to write a validation rule on account where i want some specific profile to change the record type of the account if the account status is prospect. also, i want that rest of the  profiles should not be able to change the record type. please advise.
Hi have created a dev org and and activated "my domain".
Now I would like to change the domain name again, but it is greyed out.
How can I change the name?

Thanks,
Trailblazer Tom
  • October 10, 2018
  • Like
  • 0
Can anyone help me , whenever lead is created then we have to create a task by assigning to particular user with due date  using workflow. So, now I want to populate lead fields like name,email etc into task description field. 
 Can I achieve this without creating another workflow on task object?  
Is it possible to do only with workflow ?  
Thank you in advance 
I am facing cross domain error on ajax request in javascript

Ajax Request
 
$.ajax({
                    url:"../oppitm/lineitemsort.jsp?id={!oppID}",
                    contentType:"text/html",
                    xhrFields:{withCredentials:true}
                    }).done (
                    function(data){console.log(data)});
Error
XMLHttpRequest cannot load https://ap1.salesforce.com/oppitm/lineitemsort.jsp?id=00690000007jIM1. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://nsp-demo.ap1.visual.force.com' is therefore not allowed access.

I have enabled below origin urls in CORS
  • https://*.salesforce.com
  • https://ap1.salesforce.com
  • https://nsp-demo.ap1.visual.force.com
Please suggest or any workarounds how this can be resolved
Hi, Could anyone tell me whether this is possible?
I'm wanting to check whether an account name already exists within my SF database.
Let's say I have an existing account named "Test Computers", when I submit a search for 'Test' only I DON'T want Test Computers to be included in the results.

"FIND {"Test"} IN Name FIELDS RETURNING account (account.Id)"

Thanks,

Mark
blinkCustomConsoleComponentButtonText method starts blinking but i am not able to find out how do we stop the blinking which is initiated by standard method "blinkCustomConsoleComponentButtonText". Is there any similar method available to stop its blinking?

Thanks for any help!! 
Hello 

I am in need of org chart with below features:

1. Responsive and Dynamic
2. Navigator which says where we are within the context of the overall Org Chart.
3. Zoom in / Zoom out features. For example: As it appears in google map.
4. Expand/Collapse icon attached to each Name card within the org chart.

I can find the org charts for each of these features but separately. All the features are not embedded in to one. Please let me know if any such org chart exists. 

Thanks

 
 
I am new to Apex and need to add an index filter.

The query in question:

"List<Account> leadAccountIds=Select Id, OwnerId, Name FROM Account WHERE Name IN: companies;"

Seeking some syntax advice.

Thanks!
 
It wont pass the Id to the Variable any reason why or that i am missing
 
public void AttachLoan() {
        System.debug('** in Add');
        System.debug('**' + AddLoanID);
        LLC_BI__Loan__c ul = [SELECT Id, Name, LLC_CDS__Deal_Facility__c FROM LLC_BI__Loan__c WHERE Id = :AddLoanID LIMIT 1];
        system.debug('** ' + ul);
        ul.LLC_CDS__Deal_Facility__c = ObjId;
        system.debug('**2 ' + ul);
        update(ul);
    }
 
<apex:repeat value="{!AddLoans}" var="fa">
                                        <tr>
                                            <td>
                                            <apex:form >
                                                <apex:commandButton value="Add" action="{!AttachLoan}" styleClass="btn btn-xs btn-success">
                                                    <apex:param value="{!fa.Id}" AssignTo="{!AddLoanID}"/>
                                                </apex:commandButton>
                                            </apex:form>
                                            </td>
                                            <td><a href="/{!fa.Id}" target="_Blank">{!fa.Name}</a></td>
                                            <td>{!fa.LLC_BI__lookupKey__c}</td>
                                            <td><a href="/{!fa.LLC_BI__Account__c}" target="_Blank">{!fa.LLC_BI__Account__r.Name}</a></td>
                                        </tr>
                                    </apex:repeat>



 
Hi all!
I create a new custom button with onclick javascript. And when I trying to get Id of current record, I get a message: "a04w000000OXtAN is not defined", where a04w000000OXtAN - Id of current record.
Here my code:
{!REQUIRESCRIPT('/soap/ajax/29.0/connection.js')}
{!REQUIRESCRIPT('/soap/ajax/29.0/apex.js')}


try{
var user = sforce.connection.getUserInfo();
var STE = new sforce.SObject("Object__c");
STE.Id={!package_prefix__Object__c.Id};
}
catch(er)
{
alert(er);
}

 
  • October 25, 2014
  • Like
  • 0
Hi folks,
Can anyone tell me the answer for the following ques:
Is there anyway to post a feed comment dynamically for the particular feeditems in visualforce?

How to get the FeedItemId that I posted previously?


Thanks in advance
Karthick

All,

I can not figure out how to retrieve a list of all reports from the metadata API and must be missing something simple.  If I setup a ListMetadataQuery and just set the type to "Report" I get nothing in return.  If I set the folder to null or "" I still get nothing in return.  If I set the Type to "Report" and set the folder to a folder with in the org then I get all the reports from that folder, which is expected.  What I need to know is, is there a way to get a list of folders for reports?  Or is there a way to list all the reports regardless of folder? Thanks in advance for any help.

I guess the easiest way of asking this is for the ListMetadataQuery, does the method setFolder have a wildcard character that will return any result from any folder?  I tried "*" and it didn't work

I'd like to re-open the discussion of SortOrder on the OpportunityLineItem object. A thread from 3.5 years ago can be located here:
http://community.salesforce.com/sforce/board/message?board.id=general_development&message.id=3154

Looks like people from SF were going to look into it but obviously nothing has come to fruition. The reason I have put this in the Visualforce board is that we have have a few VF applications that could really take advantage of access to this field. Visualforce has also opened up new possibilities to UI design where the ability to manage SortOrder could be useful.

Also, no offense to salesforce.com, but the tool for sorting OpportunityLineItems is not that useful when there are multiple products with the same name. I have actually built a pretty slick sorting application but this is currently useless.

A lot of the concerns were about error handling. What happens if you have 3 line items but sort order is defined as, 1, 2, 2. Or 1, 2, 4. How about just throwing a sortOrder exception and force the developers to write good code?

Ideas? Thoughts?
http://ideas.salesforce.com/article/show/10092062/OpportunityLineItem_SortOrder_to_be_CreatableUpdatable

-Jason


Message Edited by TehNrd on 09-05-2008 01:22 PM
  • September 03, 2008
  • Like
  • 1

HI Every body,

 

     I found Organization ID in 'Company Information menu, Its has 15 digits. But the problem is, I need to use this ID in a visualforce page, there its working with 18 digit ID only.

 

     salesforce is adding 3 more digits, after 15 digits. I found this 18 digit ID, "View Page Source"  option in the browser.

 

 

Why salesforce is adding 3 more digits to my Organization ID. How to find this 18 digit ID in the salesaforce.

 

Please help me.

 

Thanks,

Naresh.B