• krishna23
  • NEWBIE
  • 49 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 15
    Questions
  • 22
    Replies
I want to send email template information to opportunity team members respective parent quote information after approving the quote.
email template has quote id and quote URL.

Thanks......
 
Hi Team,

I am trying to download the report as XLS formate by providing current record id as  input to report filter. In classic, it is working by using the javascript button. How to archive the same functionality in lightning.

Javascript button: window.open('/ReportID?pv0=CurrentRecordId&export=1&enc=UTF-8&xf=xls')

Thanks..........
While scrolling records how to freeze header columns in page block table

Thanks......
if page block table has no rows how to display only header columns section.

Thanks.......
I want to display check box with records in html table 

Thanks,
Kishore
I am displaying account records in one section with a checkbox.  Now I want to add selected records to another section on the same page. 

Thanks...
I want to display account data in a dashboard using lightning component.

Thanks......
While inserting new account records before update account trigger is firing. I don't want to execute update trigger how to stop these update trigger execution. Please assist me.

Thanks!
Can any one explain what is parentid in above query, Is there any relationship with profile. I want to export object permission based on profile.

Thanks!!
How to export one csv with object level permission based on profile.
Example:    Create-true  read-true edit- true   delete-true

Thanks,
Krishna
Without mannually How to add multiple object permission (around 200) at a time  in permission set

Thanks!!
# Language: Spanish
Language code: es
Type: Bilingual

# KEY    LABEL    TRANSLATION    OUT OF DATE

CustomField.Account.Active.FieldLabel    Active    activo    -
CustomField.Account.age.FieldLabel    age    años    -
PicklistValue.Standard.accountRating.Cold    Cold    frío    -
PicklistValue.Standard.accountRating.Hot    Hot    Caliente    -
PicklistValue.Standard.accountRating.Warm    Warm    calentar    -
PicklistValue.Standard.industry.Banking    Banking    Bancario    -
PicklistValue.Standard.leadSource.Other    Other    ewrqre    -
PicklistValue.Standard.leadSource.Partner Referral    Partner Referral    fdsfjkdhfjk    -
PicklistValue.Standard.leadSource.Phone Inquiry    Phone Inquiry    consulta por teléfono    -
ValidationFormula.Account.amount    AnnualRevenue must be below 100    anual debe ser inferior a 100    -
trigger casePhone on Account (After insert,After update) {
    for(Account a : trigger.new){
    list<case> kca = New list<case>([select id,ContactMobile from case where ContactMobile != null And Accountid =: a.id]);
    for(case ca : kca){
        ca.ContactMobile = a.Phone;
        
    }
  }  
}
I want to send email template information to opportunity team members respective parent quote information after approving the quote.
email template has quote id and quote URL.

Thanks......
 
hello everyone,

i have an issue creating a new formula field. this is the requirements:

In case License Number field is not empty, Short License Number (which is the formula's name) field will contain License Number's first left character.
For example: "License Number" = 987654321 "Short License Number" = 1.

would appreciate any help.

thank you.
I am able to view the VF page i created but not able to edit the VF page using the  https://c.ap4.visual.force.com/apex/myvfpage. The editor is missing, please help..
User-added image
While scrolling records how to freeze header columns in page block table

Thanks......
if page block table has no rows how to display only header columns section.

Thanks.......
While inserting new account records before update account trigger is firing. I don't want to execute update trigger how to stop these update trigger execution. Please assist me.

Thanks!
String sch1 = '0 0/10 * 1/1 * ? *';
System.schedule('Scheduled Job 3', sch1, new myScheduleClass());

I generated the cron expression using tool cronmaker.

ERROR:System.StringException: Seconds and minutes must be specified as integers: 0 0/10 * 1/1 * ? *
Hi,

We have a trigger on ContentVersion, whenever a record is created and file attached to that record, this trigger will copy the file to another custom object record.
The file is loaded from ccScan tool and we facing below issue. Any help is really appreaciated.

User-added image 

 
Trigger ContentVersionTrigger(after update)
{
   ContentVersionHelper.onAfterUpdate(trigger.new);
}

public class ContentVersionHelper
{
    public void onAfterUpdate(list<ContentVersion> clst)
    {
        set<id> cdids=new set<id>();
        For(ContentVersion c:cLst)
        { 
            Cdids.add(c.ContentDocumentId);
        }
        List<ContentDocumentLink> cdlst=[select id,contentdocumentid, LinkedEntityId from ContentDocumentLink where contentdocumentid in:cdids];
        system.debug('#####cdlst='+cdlst);
        List<ContentDocumentLink> lst=new List<ContentDocumentLink>();
        set<id> csids=new set<id>();
        Map<Id,id> cseMap=new Map<id,id>();
        for(ContentDocumentLink cd:cdlst)
        {
            csids.add(cd.LinkedEntityId);
        }
        system.debug('#####csids='+csids);
        List<Case__c> caseLst=[select id,legacyid__c from case__c where legacyid__c=:csids];
        system.debug('#####caseLst='+caseLst);
        for(case__c c:caseLst)
        {
            cseMap.put(c.legacyid__c,c.id);
        }
        
        for(ContentDocumentLink cd:cdlst)
        {
            id myid=cd.LinkedEntityId;
            system.debug('#####myId='+myId);
            if(myId.getSObjectType().getDescribe().getName()=='ccScan__c')
            {
                             
                ContentDocumentLink cDe = new ContentDocumentLink();
                cDe.ContentDocumentId =cd.ContentDocumentId;
                system.debug('#####'+cseMap.get(cd.LinkedEntityId));
                cDe.LinkedEntityId = cseMap.get(cd.LinkedEntityId); 
                cDe.ShareType = 'V';
                cDe.Visibility = 'AllUsers';
                lst.add(cDe);
            }
            
        }
        insert lst;
        system.debug('#####lst='+lst);
    }
    
}

Thanks,
Naveen​
Can any one explain what is parentid in above query, Is there any relationship with profile. I want to export object permission based on profile.

Thanks!!
Without mannually How to add multiple object permission (around 200) at a time  in permission set

Thanks!!
In our product we have 250+ objects and 16+ profiles. I was given an assignment to prepare automation logic to provide profile level permissions to all these objects.

After all search on internert and salesforce guides was able to generate query which can be used to extract and update permissions using Apex data loader.

Below are my findings and if anyone looking for help:
  • To get all custom profile ID from target org. Extract them using below query:
Select Id,ProfileId,Profile.Name from PermissionSet where IsOwnedByProfile=true and isCustom=true
This query will extract all custom profile from the org.
To extract object permissions of all profiles:
SELECT Id, SObjectType, ParentId, Parent.ProfileId, Parent.Profile.Name, PermissionsCreate, PermissionsRead, PermissionsEdit, PermissionsDelete, PermissionsModifyAllRecords,PermissionsViewAllRecords FROM ObjectPermissions WHERE SobjectType = '<Specify Object API Name>' and parentid in (select Id from PermissionSet where PermissionSet.ProfileId IN ('<Specify Profile IDs>'))
You can much more, like Field permission, mass profile assignment to user.
Ref Links: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_permissionset.htm

Thanks
Yashita
# Language: Spanish
Language code: es
Type: Bilingual

# KEY    LABEL    TRANSLATION    OUT OF DATE

CustomField.Account.Active.FieldLabel    Active    activo    -
CustomField.Account.age.FieldLabel    age    años    -
PicklistValue.Standard.accountRating.Cold    Cold    frío    -
PicklistValue.Standard.accountRating.Hot    Hot    Caliente    -
PicklistValue.Standard.accountRating.Warm    Warm    calentar    -
PicklistValue.Standard.industry.Banking    Banking    Bancario    -
PicklistValue.Standard.leadSource.Other    Other    ewrqre    -
PicklistValue.Standard.leadSource.Partner Referral    Partner Referral    fdsfjkdhfjk    -
PicklistValue.Standard.leadSource.Phone Inquiry    Phone Inquiry    consulta por teléfono    -
ValidationFormula.Account.amount    AnnualRevenue must be below 100    anual debe ser inferior a 100    -