• Nitin tronixdev
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 15
    Questions
  • 14
    Replies
I have created an approval process but the owner of the record also getting facility to approve reject or reassign to request ...

I want to remove this , only the memebers in the queue can approve / reject the request not the record owner
Hello,

I have a object in which a lookup field connected to Contact standard object .

for e.x.
field name is emp__c i.e.. lookup datatype

when i write emp__r.Phone in sql query i got phone number from contact object of a particular employee
similary when i write emp__r.Site__c i got all site's value from contact object of a particular employee

but 


when i try to fecth account from contact object i got null value like:-
emp__r.Account

to check my query i also created a custom lookup field in contact  which is connected to account
when i write  
emp__r.Acc__c...
Still i get null values..

why??

Its very urgent pls reply ASAP.

I can fecth any other value from contact using relation field other than account only ...
but i want account from contact object 
 
Hello,

I would like to know that how can I change whole css of salesforce fo my application , can i get access of common.css or any other css of salesforce to change the look and feel of salesforce .

Or 

Is there any other way to do the same?
All tabs that are available in web version , is not available in salesforce1 app...
how can i make that tabs available in salesforce1 app too ?
I have some VF pages working properly in web version , but not on salesforce1 app.
I need a solution that how can i common design of VF that will work for both salesforce1 and web version also

@AuraEnabled
    public static void saveAll(String data  ){
         System.debug('1 '+ data);
data = data.removeStart('[');
      data = data.removeEnd(']');
        String [] obj = new String [] {};
            obj = data.split(',');
        System.debug('2 '+obj);
        for(String str :obj){
            System.debug('3'+str);
            
          Check_List__c c =  [SELECT Work__c,Start_Time__c,End_Time__c, Name,Duration__c,Company_Name__c,Site_Name__c,Shift__c from Check_List__c where Id=:str ];
           System.debug([SELECT Work__c,Start_Time__c,End_Time__c, Name,Duration__c,Company_Name__c,Site_Name__c,Shift__c from Check_List__c where Id=:str]);
                    
        }

In the above code when i try to pull data from from table with where condition of str (str holds the id of the record), but i m getting tmpvar1 in System.debug , it returns me no rows...

here is the debug logs :-


Nitin tronixdev Date 09/06/2015 11:47:32 BST
Status List has no rows for assignment to SObject Application Browser
Request Type Application Operation /aura
Duration (ms) 75 Log Size (bytes) 3,832
Log
34.0 APEX_CODE,DEBUG;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFO 11:47:32.062 (62569498)|EXECUTION_STARTED 11:47:32.062 (62596378)|CODE_UNIT_STARTED|[EXTERNAL]|aura 11:47:32.063 (63248020)|CODE_UNIT_STARTED|[EXTERNAL]|01p24000006DC6u|View_lgth.saveAll 11:47:32.063 (63358409)|METHOD_ENTRY|[1]|01p24000006DC6u|View_lgth.View_lgth() 11:47:32.063 (63370220)|METHOD_EXIT|[1]|View_lgth 11:47:32.063 (63383689)|SYSTEM_MODE_ENTER|false 11:47:32.063 (63529624)|SYSTEM_METHOD_ENTRY|[35]|System.debug(ANY) 11:47:32.063 (63565294)|USER_DEBUG|[35]|DEBUG|1 ["a0R24000001xsyXEAQ","a0R24000001xsyYEAQ","a0R24000001xsyXEAQ","a0R24000001xsyYEAQ"] 11:47:32.063 (63574663)|SYSTEM_METHOD_EXIT|[35]|System.debug(ANY) 11:47:32.063 (63598557)|SYSTEM_METHOD_ENTRY|[36]|String.removeStart(String) 11:47:32.063 (63622057)|SYSTEM_METHOD_EXIT|[36]|String.removeStart(String) 11:47:32.063 (63638086)|SYSTEM_METHOD_ENTRY|[37]|String.removeEnd(String) 11:47:32.063 (63658134)|SYSTEM_METHOD_EXIT|[37]|String.removeEnd(String) 11:47:32.063 (63683915)|SYSTEM_CONSTRUCTOR_ENTRY|[38]|<init>() 11:47:32.063 (63720358)|SYSTEM_CONSTRUCTOR_EXIT|[38]|<init>() 11:47:32.063 (63741555)|SYSTEM_METHOD_ENTRY|[39]|String.split(String) 11:47:32.063 (63788160)|SYSTEM_METHOD_EXIT|[39]|String.split(String) 11:47:32.063 (63850439)|SYSTEM_METHOD_ENTRY|[40]|String.valueOf(Object) 11:47:32.063 (63884722)|SYSTEM_METHOD_EXIT|[40]|String.valueOf(Object) 11:47:32.063 (63897722)|SYSTEM_METHOD_ENTRY|[40]|System.debug(ANY) 11:47:32.063 (63903924)|USER_DEBUG|[40]|DEBUG|2 ("a0R24000001xsyXEAQ", "a0R24000001xsyYEAQ", "a0R24000001xsyXEAQ", "a0R24000001xsyYEAQ") 11:47:32.063 (63909159)|SYSTEM_METHOD_EXIT|[40]|System.debug(ANY) 11:47:32.063 (63919437)|SYSTEM_METHOD_ENTRY|[41]|List<String>.iterator() 11:47:32.063 (63966105)|SYSTEM_METHOD_EXIT|[41]|List<String>.iterator() 11:47:32.063 (63980409)|SYSTEM_METHOD_ENTRY|[41]|system.ListIterator.hasNext() 11:47:32.064 (64014232)|SYSTEM_METHOD_EXIT|[41]|system.ListIterator.hasNext() 11:47:32.064 (64045265)|SYSTEM_METHOD_ENTRY|[42]|System.debug(ANY) 11:47:32.064 (64059860)|USER_DEBUG|[42]|DEBUG|3 "a0R24000001xsyXEAQ" 11:47:32.064 (64065117)|SYSTEM_METHOD_EXIT|[42]|System.debug(ANY) 11:47:32.064 (64081886)|SYSTEM_METHOD_ENTRY|[43]|String.valueOf(Object) 11:47:32.064 (64103595)|SYSTEM_METHOD_EXIT|[43]|String.valueOf(Object) 11:47:32.064 (64117159)|SYSTEM_METHOD_ENTRY|[44]|System.debug(ANY) 11:47:32.064 (64129174)|USER_DEBUG|[44]|DEBUG|4 "a0R24000001xsyXEAQ" 11:47:32.064 (64134047)|SYSTEM_METHOD_EXIT|[44]|System.debug(ANY) 11:47:32.065 (65439377)|SOQL_EXECUTE_BEGIN|[45]|Aggregations:0|SELECT Work__c, Start_Time__c, End_Time__c, Name, Duration__c, Company_Name__c, Site_Name__c, Shift__c FROM Check_List__c WHERE Id = :tmpVar1 11:47:32.068 (68530502)|SOQL_EXECUTE_END|[45]|Rows:0 11:47:32.068 (68766465)|FATAL_ERROR|System.QueryException: List has no rows for assignment to SObject Class.View_lgth.saveAll: line 45, column 1 11:47:32.068 (68780563)|FATAL_ERROR|System.QueryException: List has no rows for assignment to SObject Class.View_lgth.saveAll: line 45, column 1 11:47:32.068 (68795368)|CUMULATIVE_LIMIT_USAGE 11:47:32.068 (68795368)|LIMIT_USAGE_FOR_NS|(default)| Number of SOQL queries: 1 out of 100 Number of query rows: 0 out of 50000 Number of SOSL queries: 0 out of 20 Number of DML statements: 0 out of 150 Number of DML rows: 0 out of 10000 Maximum CPU time: 0 out of 10000 Maximum heap size: 0 out of 6000000 Number of callouts: 0 out of 100 Number of Email Invocations: 0 out of 10 Number of future calls: 0 out of 50 Number of queueable jobs added to the queue: 0 out of 50 Number of Mobile Apex push calls: 0 out of 10 11:47:32.068 (68795368)|CUMULATIVE_LIMIT_USAGE_END 11:47:32.068 (68842777)|CODE_UNIT_FINISHED|View_lgth.saveAll


or is there any other way to do this in lighting controller....



Or Is there any other way to develop VF page for both MO. and Web??
I am facing problem while deploying object to one account to another in salesforce ... These account belongs to different url one is with Enviroment hub and other without enviroment hub..
I want to transfer objects + VF PAGES + CONTROLLERS to url with enviroment hub from without enviroment hub url

i m using migration tool with ANT and JAVA and cmd from windows 7

and after performing depolying i am getting following errors :-

Buildfile: C:\project\build.xml

deploy:
[sf:deploy] Request for a deploy submitted successfully.
[sf:deploy] Request ID for the current deploy task: 0Af2400000gGXxSCAW
[sf:deploy] Waiting for server to finish processing the request...
[sf:deploy] Request Status: InProgress (0/200)  -- Processing Type: CustomObject

[sf:deploy] Request Status: InProgress
[sf:deploy] --------------------------------------------------------------------
---------------
[sf:deploy] Component Failures:
[sf:deploy] 1.  objects/Leave_Managment__c.object (Leave_Managment__c.Leave_Appr
overs_Leave_Managment) -- Error: In field: queue - no Queue named Leave_Approver
s found (line 115, column 16)
[sf:deploy] --------------------------------------------------------------------
---------------
[sf:deploy] Request Status: Failed

BUILD FAILED
C:\project\build.xml:20:
*********** DEPLOYMENT FAILED ***********
Request ID: 0Af2400000gGXxSCAW

All Component Failures:
1.  objects/Leave_Managment__c.object (Leave_Managment__c.Leave_Approvers_Leave_
Managment) -- Error: In field: queue - no Queue named Leave_Approvers found (lin
e 115, column 16)
2.  objects/Entity__c.object (Entity__c.AU_Lead__c) -- Error: Invalid Field: Con
tact.Designation__r.Name (line 65, column 26)
3.  objects/Entity__c.object (Entity__c.Cluster_Lead__c) -- Error: Invalid Field
: Contact.Designation__r.Name (line 121, column 26)
4.  objects/Entity__c.object (Entity__c.Regional_Entity_Director__c) -- Error: I
nvalid Field: Contact.Designation__r.Name (line 792, column 26)
5.  objects/Issue__c.object (Issue__c.Contact__c) -- Error: Invalid Field: Conta
ct.Shift_Management__c (line 94, column 26)
6.  objects/Risk_Assessment__c.object (Risk_Assessment__c.AU_Lead__c) -- Error:
Invalid Field: Contact.Designation__r.Name (line 65, column 26)
7.  objects/Site_Management__c.object (Site_Management__c.Site_Manager__c) -- Er
ror: Invalid Field: Contact.Designation__r.Name (line 208, column 26)
8.  objects/Add_Inventory__c.object -- Error: inventorynewpage does not exist or
 is not a valid override for action View.
9.  objects/Add_WareHouse__c.object -- Error: addwarehousenewpage does not exist
 or is not a valid override for action View.
10.  objects/Attendance__c.object -- Error: excel_file_uploading does not exist
or is not a valid override for action New.
11.  objects/Check_List__c.object -- Error: check_list does not exist or is not
a valid override for action New.
12.  objects/Designation__c.object -- Error: designationnewpage does not exist o
r is not a valid override for action View.
13.  objects/Entity__c.object -- Error: entitynewpage does not exist or is not a
 valid override for action View.
14.  objects/Invetory_Management__c.object -- Error: inventory does not exist or
 is not a valid override for action Edit.
15.  objects/Business_Enagegment__c.object -- Error: bussiness_enagegment does n
ot exist or is not a valid override for action New.
16.  objects/Issue__c.object -- Error: issuetaboverride does not exist or is not
 a valid override for action Tab.
17.  objects/Leave_Managment__c.object -- Error: leavemanagementnewpage does not
 exist or is not a valid override for action View.
18.  objects/Manage_work__c.object -- Error: managerworknewpage does not exist o
r is not a valid override for action View.
19.  objects/ReOccurring_Jobs__c.object -- Error: re_occurring_jobs does not exi
st or is not a valid override for action New.
20.  objects/Risk_Assessment__c.object -- Error: riskassessmentpage does not exi
st or is not a valid override for action View.
21.  objects/Shift_Managment__c.object -- Error: shiftnewpage does not exist or
is not a valid override for action View.
22.  objects/Site_Management__c.object -- Error: sitenewpage does not exist or i
s not a valid override for action View.
23.  objects/View_Check_List__c.object -- Error: view_check_list does not exist
or is not a valid override for action New.
24.  objects/WareHouse__c.object -- Error: warehousenewpage does not exist or is
 not a valid override for action View.

*********** DEPLOYMENT FAILED ***********

Do  I need to create VF and there CONTROLLERS again ??
Is there any other way to achieve this???
..................................................................

this is my package.xml
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>CustomObject</name>
    </types>
    <version>32.0</version>
</Package>



 
I want to increase dashboard's column width , when i m adding new VF page its not fully visible because of less column width...
I want to increase that column width...
Hello, 

 Consider the following situation :
  
     We have a custom object by the name of ABC which contains look up field that associates each record to a particular Contact. Now we want whenever we associate particular record to a Contact then the owner of this contact and its upper level in the Role hierarchy can only view and take action on the record. 

As of now when we are creating a sharing rule then the user with same role can view the record but we want it to be based on the owner of the record. 

Please provide us the sharing rule for the same scenario.



 
I am developing two different apps with the same ID...
and in one old app / object have added and custom link componet in left sidebar...
but it can also be seend in other apps / objects too..
how can I change this layout according to OBEJCTS/APPS...
I have already created some custom reports, and its working fine and I have different users with different profiles.
I want that different profiled users can see different summarize report by options....

For E.X.:-

I have one profile thats Site Manager and a Custom Report  CONTACT ...
Now I want that Users with this Site Manager's Profile can only see
Summarize Report By Site Only ...
But Every Profiled Users Can Summarize Report  By All Options 
how can I achieve this ?
An unexpected error has occurred. 691196293-2511 (528326319) for deploymentId=1dr24000000P28FAAS If this persists, please contact customer support.

Above message i am getting while saving code in lighting component's controller...
I want to know that how can i increase my tabs as i used all 25 tabs permitted by salesforce and now i want to increase it , how can i increase it ??
Lighting Tab not visible in Adroid Salesforce1 app but can be seen in IOS ...
How can i solve this issue ?

I want to change salesforce's complete look and feel inlcuding its header part too ....

Is it possible to do it ?

Hello,

I have a object in which a lookup field connected to Contact standard object .

for e.x.
field name is emp__c i.e.. lookup datatype

when i write emp__r.Phone in sql query i got phone number from contact object of a particular employee
similary when i write emp__r.Site__c i got all site's value from contact object of a particular employee

but 


when i try to fecth account from contact object i got null value like:-
emp__r.Account

to check my query i also created a custom lookup field in contact  which is connected to account
when i write  
emp__r.Acc__c...
Still i get null values..

why??

Its very urgent pls reply ASAP.

I can fecth any other value from contact using relation field other than account only ...
but i want account from contact object 
 
All tabs that are available in web version , is not available in salesforce1 app...
how can i make that tabs available in salesforce1 app too ?
I have some VF pages working properly in web version , but not on salesforce1 app.
I need a solution that how can i common design of VF that will work for both salesforce1 and web version also

@AuraEnabled
    public static void saveAll(String data  ){
         System.debug('1 '+ data);
data = data.removeStart('[');
      data = data.removeEnd(']');
        String [] obj = new String [] {};
            obj = data.split(',');
        System.debug('2 '+obj);
        for(String str :obj){
            System.debug('3'+str);
            
          Check_List__c c =  [SELECT Work__c,Start_Time__c,End_Time__c, Name,Duration__c,Company_Name__c,Site_Name__c,Shift__c from Check_List__c where Id=:str ];
           System.debug([SELECT Work__c,Start_Time__c,End_Time__c, Name,Duration__c,Company_Name__c,Site_Name__c,Shift__c from Check_List__c where Id=:str]);
                    
        }

In the above code when i try to pull data from from table with where condition of str (str holds the id of the record), but i m getting tmpvar1 in System.debug , it returns me no rows...

here is the debug logs :-


Nitin tronixdev Date 09/06/2015 11:47:32 BST
Status List has no rows for assignment to SObject Application Browser
Request Type Application Operation /aura
Duration (ms) 75 Log Size (bytes) 3,832
Log
34.0 APEX_CODE,DEBUG;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFO 11:47:32.062 (62569498)|EXECUTION_STARTED 11:47:32.062 (62596378)|CODE_UNIT_STARTED|[EXTERNAL]|aura 11:47:32.063 (63248020)|CODE_UNIT_STARTED|[EXTERNAL]|01p24000006DC6u|View_lgth.saveAll 11:47:32.063 (63358409)|METHOD_ENTRY|[1]|01p24000006DC6u|View_lgth.View_lgth() 11:47:32.063 (63370220)|METHOD_EXIT|[1]|View_lgth 11:47:32.063 (63383689)|SYSTEM_MODE_ENTER|false 11:47:32.063 (63529624)|SYSTEM_METHOD_ENTRY|[35]|System.debug(ANY) 11:47:32.063 (63565294)|USER_DEBUG|[35]|DEBUG|1 ["a0R24000001xsyXEAQ","a0R24000001xsyYEAQ","a0R24000001xsyXEAQ","a0R24000001xsyYEAQ"] 11:47:32.063 (63574663)|SYSTEM_METHOD_EXIT|[35]|System.debug(ANY) 11:47:32.063 (63598557)|SYSTEM_METHOD_ENTRY|[36]|String.removeStart(String) 11:47:32.063 (63622057)|SYSTEM_METHOD_EXIT|[36]|String.removeStart(String) 11:47:32.063 (63638086)|SYSTEM_METHOD_ENTRY|[37]|String.removeEnd(String) 11:47:32.063 (63658134)|SYSTEM_METHOD_EXIT|[37]|String.removeEnd(String) 11:47:32.063 (63683915)|SYSTEM_CONSTRUCTOR_ENTRY|[38]|<init>() 11:47:32.063 (63720358)|SYSTEM_CONSTRUCTOR_EXIT|[38]|<init>() 11:47:32.063 (63741555)|SYSTEM_METHOD_ENTRY|[39]|String.split(String) 11:47:32.063 (63788160)|SYSTEM_METHOD_EXIT|[39]|String.split(String) 11:47:32.063 (63850439)|SYSTEM_METHOD_ENTRY|[40]|String.valueOf(Object) 11:47:32.063 (63884722)|SYSTEM_METHOD_EXIT|[40]|String.valueOf(Object) 11:47:32.063 (63897722)|SYSTEM_METHOD_ENTRY|[40]|System.debug(ANY) 11:47:32.063 (63903924)|USER_DEBUG|[40]|DEBUG|2 ("a0R24000001xsyXEAQ", "a0R24000001xsyYEAQ", "a0R24000001xsyXEAQ", "a0R24000001xsyYEAQ") 11:47:32.063 (63909159)|SYSTEM_METHOD_EXIT|[40]|System.debug(ANY) 11:47:32.063 (63919437)|SYSTEM_METHOD_ENTRY|[41]|List<String>.iterator() 11:47:32.063 (63966105)|SYSTEM_METHOD_EXIT|[41]|List<String>.iterator() 11:47:32.063 (63980409)|SYSTEM_METHOD_ENTRY|[41]|system.ListIterator.hasNext() 11:47:32.064 (64014232)|SYSTEM_METHOD_EXIT|[41]|system.ListIterator.hasNext() 11:47:32.064 (64045265)|SYSTEM_METHOD_ENTRY|[42]|System.debug(ANY) 11:47:32.064 (64059860)|USER_DEBUG|[42]|DEBUG|3 "a0R24000001xsyXEAQ" 11:47:32.064 (64065117)|SYSTEM_METHOD_EXIT|[42]|System.debug(ANY) 11:47:32.064 (64081886)|SYSTEM_METHOD_ENTRY|[43]|String.valueOf(Object) 11:47:32.064 (64103595)|SYSTEM_METHOD_EXIT|[43]|String.valueOf(Object) 11:47:32.064 (64117159)|SYSTEM_METHOD_ENTRY|[44]|System.debug(ANY) 11:47:32.064 (64129174)|USER_DEBUG|[44]|DEBUG|4 "a0R24000001xsyXEAQ" 11:47:32.064 (64134047)|SYSTEM_METHOD_EXIT|[44]|System.debug(ANY) 11:47:32.065 (65439377)|SOQL_EXECUTE_BEGIN|[45]|Aggregations:0|SELECT Work__c, Start_Time__c, End_Time__c, Name, Duration__c, Company_Name__c, Site_Name__c, Shift__c FROM Check_List__c WHERE Id = :tmpVar1 11:47:32.068 (68530502)|SOQL_EXECUTE_END|[45]|Rows:0 11:47:32.068 (68766465)|FATAL_ERROR|System.QueryException: List has no rows for assignment to SObject Class.View_lgth.saveAll: line 45, column 1 11:47:32.068 (68780563)|FATAL_ERROR|System.QueryException: List has no rows for assignment to SObject Class.View_lgth.saveAll: line 45, column 1 11:47:32.068 (68795368)|CUMULATIVE_LIMIT_USAGE 11:47:32.068 (68795368)|LIMIT_USAGE_FOR_NS|(default)| Number of SOQL queries: 1 out of 100 Number of query rows: 0 out of 50000 Number of SOSL queries: 0 out of 20 Number of DML statements: 0 out of 150 Number of DML rows: 0 out of 10000 Maximum CPU time: 0 out of 10000 Maximum heap size: 0 out of 6000000 Number of callouts: 0 out of 100 Number of Email Invocations: 0 out of 10 Number of future calls: 0 out of 50 Number of queueable jobs added to the queue: 0 out of 50 Number of Mobile Apex push calls: 0 out of 10 11:47:32.068 (68795368)|CUMULATIVE_LIMIT_USAGE_END 11:47:32.068 (68842777)|CODE_UNIT_FINISHED|View_lgth.saveAll


or is there any other way to do this in lighting controller....



Or Is there any other way to develop VF page for both MO. and Web??
Hello, 

 Consider the following situation :
  
     We have a custom object by the name of ABC which contains look up field that associates each record to a particular Contact. Now we want whenever we associate particular record to a Contact then the owner of this contact and its upper level in the Role hierarchy can only view and take action on the record. 

As of now when we are creating a sharing rule then the user with same role can view the record but we want it to be based on the owner of the record. 

Please provide us the sharing rule for the same scenario.



 
I am developing two different apps with the same ID...
and in one old app / object have added and custom link componet in left sidebar...
but it can also be seend in other apps / objects too..
how can I change this layout according to OBEJCTS/APPS...
I have already created some custom reports, and its working fine and I have different users with different profiles.
I want that different profiled users can see different summarize report by options....

For E.X.:-

I have one profile thats Site Manager and a Custom Report  CONTACT ...
Now I want that Users with this Site Manager's Profile can only see
Summarize Report By Site Only ...
But Every Profiled Users Can Summarize Report  By All Options 
how can I achieve this ?
An unexpected error has occurred. 691196293-2511 (528326319) for deploymentId=1dr24000000P28FAAS If this persists, please contact customer support.

Above message i am getting while saving code in lighting component's controller...