• chandu kari 8
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 2
    Replies
Hi,

In Contact object have score and rank fields, here i want to do based on score rank should update 1,2, 3 like that corresponding Account, If one Account have 3 contacts then update to 1.2,3 update ranking based on score field value
Hi everyone,
Iam trying to drag and drop files using LWC,I completed drag and drop But here dispalying Drop zone size is very small,here i want to increse dropzone size,
Now iam getting like this 
User-added image
Code:
HTML:
 <lightning-file-upload 
        class="dragbox"
        name="fileUploader"
        accept={acceptedFormats}
        record-id={recordId}
        onuploadfinished={handleUploadFinished}
        multiple>
      </lightning-file-upload>

CSS
.dragbox{
    position: relative;
    
    text-align: center;
    height: 200px;
    width: 100%;
    min-height: 0px !important;
}

I want to increse dropzone size width and height.
Please help me
 I have a requirement,That is I am trying to upload the file in salesforce org and then automatically upload the file in sharepoint app, I tryed declaritive but i dint get any source ,so want to try rest API coding  give any sugetions,
public with sharing class Approvalhistory {
    
    
    @AuraEnabled(cacheable=true)  
    public static list<ProcessInstanceHistory> getApprovalData(string recordId)  {
        list<ProcessInstanceHistory>history=new list<ProcessInstanceHistory>();
        
        for(ProcessInstance processInstance: getAllhistory(recordId).values())  
        {                  
            for(ProcessInstanceHistory sWI:processInstance.StepsAndWorkitems)  
            {
                system.debug('stepStatus :: '+sWI.StepStatus);
                system.debug('stepName :: '+sWI.Actor.Name);
                history.add(sWI);
            }
        }
        return history;
    }
    
    
    @AuraEnabled
    public static Map<Id,ProcessInstance> getAllhistory(Id recordId)  {  
        return new Map<Id,ProcessInstance>([SELECT Id,Status,SubmittedById, 
                                            (SELECT Id, ProcessNodeId,StepStatus, Comments, TargetObjectId,ActorId,CreatedById,IsDeleted,
                                             IsPending,OriginalActorId,ProcessInstanceId,RemindersSent,CreatedDate, Actor.Name,  
                                             OriginalActor.Name , ProcessNode.Name 
                                             FROM StepsAndWorkitems ORDER BY CreatedDate DESC )
                                            FROM ProcessInstance 
                                            WHERE TargetObjectId =: recordId ORDER BY CreatedDate DESC ]);  
    }  
    

This is my code ,
please help me
Hi everyone,
Iam trying to drag and drop files using LWC,I completed drag and drop But here dispalying Drop zone size is very small,here i want to increse dropzone size,
Now iam getting like this 
User-added image
Code:
HTML:
 <lightning-file-upload 
        class="dragbox"
        name="fileUploader"
        accept={acceptedFormats}
        record-id={recordId}
        onuploadfinished={handleUploadFinished}
        multiple>
      </lightning-file-upload>

CSS
.dragbox{
    position: relative;
    
    text-align: center;
    height: 200px;
    width: 100%;
    min-height: 0px !important;
}

I want to increse dropzone size width and height.
Please help me
I am trying to add a custom LWC to a phone record page however getting the below error message. Could anyone help me out how to make the component mobile viewable.

User-added image