Skill Based Routing with Apex/Flows in Salesforce

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ส.ค. 2024
  • This video is sequeal of omni channel salesforce tutorial(LINK)
    In this video, we will cover
    1. What is SKill based routing
    2. Why Skill based routing used when we already have Queue based routing.
    3. Skill based routing options.
    4. Skill based routing using Apex class with demo,
    5. Skill based routing using flows with demo
    "APEX CLASS FOR SKILL BASED ROUTING"
    TH-cam DESCRIPTION BOX DOESN'T ALLOW ANGULAR BRACES. SO LIST IS DEFINED LIKE LIST[SKILL]
    PLEASE REPLACE [ TO LESS THAN SYMBOL, AND ] TO GREAT THAN SYMBOL AFTER YOU COPY THE CLASS.
    public class SkillBasedRoutingDemoClass {
    @InvocableMethod
    public static void routingCasesToAgents(LIst[String] caseIds){
    //Create PSR
    //Add skills to the request for the case
    //Push it to queue
    List[Case] casesInserted = [SELECT id,subject from Case where ID IN: caseIds];
    LIst[Skill] allSkillsInDB = [SELECT id,MasterLabel from Skill];
    for(Case caseRec : casesInserted){
    PendingServiceRouting psr= new PendingServiceRouting();
    psr.workItemId = caseRec.Id;
    psr.RoutingType = 'SkillsBased';
    psr.RoutingPriority = 1;
    psr.CapacityWeight = 1;
    psr.ServiceChannelId = '0N92x00000001OW'; //USE YOUR OWN SERVICE CHANNEL ID
    psr.RoutingModel = 'MostAvailable';
    psr.IsReadyForRouting = FALSE; //DRAFT state
    Insert psr; //DONE WITH MY FIRST STEP
    //FIND OUT THE SKILLS REQUIRED FOR A GIVEN CASE BASED ON ITS SUBJECT
    List[String] matchingSkillIds = new List[String]();
    for(Skill skillRec: allSkillsINDB){
    if(caseRec.Subject.contains(skillRec.MasterLabel)){
    matchingSkillIds.add(skillRec.Id);
    }
    }
    List[SkillRequirement] skillReqsToInsert = new List[SkillRequirement]();
    //Associate matching skills with PSR request
    for(String matchingSkillId: matchingSkillIds){
    SkillRequirement skillRequ = new SkillRequirement();
    skillRequ.SkillId = matchingSkillId;
    skillRequ.RelatedRecordId = psr.id;
    skillRequ.SkillLevel = 5;
    skillReqsToInsert.add(skillRequ);
    }
    Insert skillReqsToInsert;
    //PUSH our request in to the queue
    psr.IsReadyForRouting = TRUE;
    Update PSR;
    }
    }
    }
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 82

  • @kumara5492
    @kumara5492 4 ปีที่แล้ว

    Such a great service to Salesforce community. Thank you,

  • @monteriojackson
    @monteriojackson 3 ปีที่แล้ว

    Please make more videos like this. So educational! kudos to whoever spends time in making this content.

  • @kk-fj6in
    @kk-fj6in 2 ปีที่แล้ว

    Great informative video. Thank you for the detailed walkthrough

  • @sandeesh1234
    @sandeesh1234 4 ปีที่แล้ว

    Great video with detailed walk through. Thanks!

  • @zacharyalexander2939
    @zacharyalexander2939 2 ปีที่แล้ว

    This is one of the very best walkthroughs I've ever experienced. Thank you VERY much :)

  • @garimasharma7033
    @garimasharma7033 3 ปีที่แล้ว

    Amazing video.. beautifully explained. Looking for more videos coming from you.

  • @abymvarghese
    @abymvarghese 4 ปีที่แล้ว +2

    Thank you so much. Excellent explanation with details... really helpful!

  • @681mahesh
    @681mahesh 4 ปีที่แล้ว

    Thank you shreekanth.
    It gave excellent understanding of concepts.
    Thank you for video. Keep a great work.

  • @amanbisht2704
    @amanbisht2704 3 ปีที่แล้ว

    so beautifully explained.. Loved it Man!!

  • @savneetkk
    @savneetkk 2 ปีที่แล้ว

    Another amazing video, thank you so much

  • @anilgugulothu7423
    @anilgugulothu7423 4 ปีที่แล้ว

    excellent video..... thanks sreekanth

  • @deepanshujain6512
    @deepanshujain6512 3 ปีที่แล้ว +2

    Hi Salesforce Exclusive,
    Please make more videos to learn salesforce admin/development.
    Your content is really amazing and creative, it really helps a lot of users to learn fast and efficiently.
    Waiting for your more videos to come.

  • @khushboomittal5683
    @khushboomittal5683 4 ปีที่แล้ว

    Hi Shrikant. Brilliant video. Each and every thing explained to perfectly.
    Really a very useful video

  • @mediumuglymandem1232
    @mediumuglymandem1232 4 ปีที่แล้ว +9

    This probably one of the most informative formats for Salesforce users all over the world - massive applause to you Shreekanth

  • @shrutisamant6955
    @shrutisamant6955 3 ปีที่แล้ว

    excellent video !!! Thanks a lot for clear explanation

  • @venkatk2040
    @venkatk2040 4 ปีที่แล้ว

    Great video sreekanth, complex one is simple now. Thanks a lot for your efforts :)

  • @thirumalareddy9822
    @thirumalareddy9822 4 ปีที่แล้ว

    Very good explanation

  • @ganeshramramasubramanium4855
    @ganeshramramasubramanium4855 4 ปีที่แล้ว

    It is really superb

  • @AnjaliSingh-ze3rz
    @AnjaliSingh-ze3rz 2 ปีที่แล้ว

    Thanku for such an informative video...Helps a lot in understanding the concept clearly...

  • @reenaphilomena
    @reenaphilomena 4 หลายเดือนก่อน

    Very Helpful.

  • @sandeepdharwar247
    @sandeepdharwar247 3 ปีที่แล้ว

    thank you so much for these videos:) they have been very helpful!

  • @kittinikoletttoth1424
    @kittinikoletttoth1424 3 ปีที่แล้ว

    Thank you so much. Really helpful!

  • @shubhravinnakota9815
    @shubhravinnakota9815 3 ปีที่แล้ว

    You are Amazing Srikanth!!

  • @alikaroui8944
    @alikaroui8944 3 ปีที่แล้ว

    Thanks a lot for this video :)

  • @sankalpnavghare
    @sankalpnavghare 4 ปีที่แล้ว +2

    Glad to featured there at the start of the videos for my review ... brilliant video Shreekant! Again Complex topic made super simple
    Can you do one on:
    1. Field service lightning
    2. Marketing cloud ☁️

  • @atozworksentertainment7173
    @atozworksentertainment7173 4 ปีที่แล้ว

    your videos are very informative, please make video series on development and oops concept it would be very helpful

  • @mayankpandya9301
    @mayankpandya9301 3 ปีที่แล้ว

    @Shreekanth Thanks for video.

  • @mindipraveen031
    @mindipraveen031 3 ปีที่แล้ว

    Thank you 👏🏻👏🏻👏🏻👏🏻👏🏻

  • @chuckosome9794
    @chuckosome9794 4 ปีที่แล้ว

    Thank you so much for sharing! Pls share knowledge on being a consultant or admin like role based video series/playlist :)

  • @charumittal5516
    @charumittal5516 4 ปีที่แล้ว +1

    Very informative and easy to understand video.
    Thanks a lot for your help Shrikant.
    Can you please create video on 'Entitlement' and 'Milestones' also?

  • @aiyanasharma7336
    @aiyanasharma7336 3 ปีที่แล้ว

    Hi Salesforce Exclusive,
    Please make more videos to learn salesforce admin/development. waiting more content .

  • @balajispn
    @balajispn 4 ปีที่แล้ว

    Great work Sreekanth. Pls post a video on Territory Mgmt.

  • @vishalsoni9408
    @vishalsoni9408 4 ปีที่แล้ว

    Sir please make video on SOAP & REST api
    The way you explain is very nice.

  • @varunkumar-fx7yr
    @varunkumar-fx7yr 4 ปีที่แล้ว +1

    Thank you Srikanth!!
    I was waiting for this video.
    Can you please make a video on entitlement process

  • @sankalpnavghare
    @sankalpnavghare 4 ปีที่แล้ว

    It's been a month and your fans have been missing you... Looking forward to your videos... @salesforce exclusive @shreekant vegi.. awaiting a bell notification on you tube... From your channel

  • @salesforceinterviewmaratho5434
    @salesforceinterviewmaratho5434 2 ปีที่แล้ว

    Hi Srikanth, I am fallowing all your video's regularly and those are really good. If possible can you please do a video on Entitlement and Milestones in service cloud.
    Thanks In advance.

  • @dougamolina
    @dougamolina 3 ปีที่แล้ว

    Thank you!!

  • @nikhithanune9523
    @nikhithanune9523 4 ปีที่แล้ว

    Great work Sreekanth. Pls post a video on Dashboard concept

  • @chethelesser
    @chethelesser 2 ปีที่แล้ว

    Very cool! This should be a Trailhead module :D

  • @vijaygole5373
    @vijaygole5373 ปีที่แล้ว

    Thanks

  • @swathishetty2104
    @swathishetty2104 3 ปีที่แล้ว

    Hi Shreekanth,please please please create Salesforce integration videos.Your videos are very easy to understand.

  • @Pramita_QueenofFortune
    @Pramita_QueenofFortune 3 ปีที่แล้ว

    Hi Sreekanth, Very nice video. Thank you for putting so much effort to make our coding experience easier. Sreekanth in this video you mentioned that for Attribute based Skill Routing you have created a separate video , however I could not find any in playlist. Would you be able to share the link please ?

  • @matheusantonio3923
    @matheusantonio3923 4 ปีที่แล้ว

    Hi, how's it going? Props, it is a very helpful video! Thank you so much for sharing your knowledge.
    Could you please tell me whether the resource "Attribute Setup for Skills-Based Routing" can be adopted rather than using apex/flow in this case?

  • @Lankathilaka
    @Lankathilaka 3 ปีที่แล้ว

    Drugs are bad behaviors for teenagers, hardcoding is bad for programmers !!!... epic. Awesome video

  • @punamdesaai9014
    @punamdesaai9014 2 ปีที่แล้ว

    Hi Shreekant, very nice video. Great efforts. With the process builder gone, can you please create a video all in flow please?

  • @chitrakapildev6355
    @chitrakapildev6355 3 ปีที่แล้ว

    Your videos are so helpful. Thank you. Do you provide training on LWC?

  • @Rajbusy_bee
    @Rajbusy_bee 3 ปีที่แล้ว

    Hi Srikanth
    If possible can you share Lightning Component videos
    What I observe is Your explanation is awesome than others

  • @prafullostwal9014
    @prafullostwal9014 4 ปีที่แล้ว

    Hi Srikanth, Great video and very helpfull.
    Can you please tell me one solutiion that if i have multiple case type and need to create multiple task from multiple case types in flow. how we can do it in flow? can you please help me??

  • @narayanapv3041
    @narayanapv3041 2 ปีที่แล้ว

    One more point to add on while creating service resources certain fields like active won't be visible on the layout. To make it visible just type field service settings in quick find and enable it . Viola the fields will now appear on service resource records !
    Happy learning

  • @nabeelkt5130
    @nabeelkt5130 4 ปีที่แล้ว +1

    Hi Sreekanth, Can we use the same for live web chat?. I have a requirement to assign agents on region-wise while chat comes from customers. Can I use the same scenario on the LiveChatTranscript object to accomplish this?

  • @vijaygole5373
    @vijaygole5373 ปีที่แล้ว

    Please, make videos on DML Operations, SOQL and SOSL

  • @chandramanne4021
    @chandramanne4021 3 ปีที่แล้ว

    Hi Srikanth, Nice video and very helpful. How can we add the priority level in flow as like apex class(skillRequ.SkillLevel = 5)

  • @mwaso
    @mwaso ปีที่แล้ว

    This is all very helpful. Can you please make a demo for how to add skills to a service resource automatically using Flow? I haven't been able to find that anywhere. I am wanting to create a new service territory member, assign values upon creation, add a new service resource, and assign skills. Later I'll need to deactivate the service territory member, deactivate the service resource, and remove the assigned skills. I know how to do all of this except for assigning and removing skills using Flow. This would be a helpful resource.

  • @MDARIFKHAN-bf5wn
    @MDARIFKHAN-bf5wn 2 ปีที่แล้ว +1

    Sir ab aap videos kyu nahi banate h. Please aur bhi videos banayiye

  • @puneetgaur8670
    @puneetgaur8670 2 ปีที่แล้ว

    Thanks for sharing Omni Channel configuration. Can we configure both queue and skill based routing for Case object? My use case is - If no skill match then system should assign owner based on queue.

  • @kajalscreations5539
    @kajalscreations5539 ปีที่แล้ว

    Plz make more videos

  • @ayyappak9215
    @ayyappak9215 2 ปีที่แล้ว

    please can u do more videos like aura components, LWC ,VF, Integration, shreekanth

  • @terrym261
    @terrym261 4 ปีที่แล้ว

    Hi Sreekanth,
    could you post the link to your skills based omni channel with attributes?
    thanks

  • @klavanya4516
    @klavanya4516 3 ปีที่แล้ว

    can you plz upload video about lightning components

  • @akshaysfdc2105
    @akshaysfdc2105 3 ปีที่แล้ว

    can you make video on attribute based skill routing

  • @BalajiBalaji-jv1gt
    @BalajiBalaji-jv1gt ปีที่แล้ว

    Hi srikanth
    If don't mine how to write test class and how to get code coverage
    Plz once make a video in that.

  • @surajmogal526
    @surajmogal526 3 ปีที่แล้ว

    Upload more videos please

  • @ujjawalgupta668
    @ujjawalgupta668 ปีที่แล้ว

    hi
    1. could we add a formula field in omni channel
    2. could we add a custom field which is a datetime field in omnichannel

  • @ChessGuy7
    @ChessGuy7 ปีที่แล้ว

    At 1:05:22, we are assigning variables to string variable using a formula.
    We using stringVar = stringVar +','+skill.masterlabel
    Question - isn't this going to return something like ', English'.
    It will add , at beginning since initialization of var is null.

  • @janac7510
    @janac7510 3 ปีที่แล้ว

    Is it required to have apex class for routing the cases?

  • @unitedop1
    @unitedop1 2 ปีที่แล้ว

    Hi, Can I email you with some queries, I am looking do mass email based on a report output. For example if I am running an outstanding balances which comes from a custom object, and has Email as field in it as well. Can I use the report and send mass email to contact in that report. Report has Name, Business Name, Amount owe.... Please let me know if this is possible. I remember you have mentioned that it was possible thru flows.

  • @SarGuP
    @SarGuP ปีที่แล้ว

    Is there any similar thing available for lead object salescloud

  • @BhanuPratapSingh-su1cz
    @BhanuPratapSingh-su1cz ปีที่แล้ว

    Skill Based Routing it always routing to one user only not other user even that case subject have matched skill

  • @yashasvitalwar4246
    @yashasvitalwar4246 3 ปีที่แล้ว

    Hi Srikanth
    No video since 9 months.. hope all is well?
    Is there a way to connect to you... email / website / LinkedIn... anything... its regarding a professional task.

  • @harshaagadag2903
    @harshaagadag2903 4 ปีที่แล้ว

    Hi Sreekanth,
    I am trying to set up Flow for Skills Based Routing and i am getting an error when ever i am trying to Create a Case.
    The Flow is failing with below error:
    Verify that the Skill ID is correct.
    Any suggestions on this.

    • @SalesforceExclusive
      @SalesforceExclusive  4 ปีที่แล้ว +1

      Hi Harsha, In the video, even i got the similar issue, instead of getting skill id i got skill name and Salesforce thrown this error. You might have done the same mistake as i did. Please check once and if you still got this issue please comment your error here. I will have a look in to it.

    • @harshaagadag2903
      @harshaagadag2903 4 ปีที่แล้ว +1

      @@SalesforceExclusive Hello Sreekanth , Yes it was issue with Skill Id and I changed it and it's working fine now.
      Good job on all these videos.

    • @ramakrishna-um5be
      @ramakrishna-um5be 3 ปีที่แล้ว +1

      @@SalesforceExclusive sir I would to learn complete Salesforce course with u pls tell me how to contact u....

  • @chaayoub5360
    @chaayoub5360 3 ปีที่แล้ว

    i found it that it's very complicated step (a lot of ressource+ why are you choosing skill id + why are you using " and + ?

  • @KalpsVlogs
    @KalpsVlogs 2 ปีที่แล้ว

    Why there are no vedios later after this

  • @chikku3005
    @chikku3005 3 ปีที่แล้ว

    Y no video is uploaded recently

  • @sonalisourav9564
    @sonalisourav9564 ปีที่แล้ว

    how to route skills via live chat in salesforce, if anyone can please help...

  • @mounikakothagalla7188
    @mounikakothagalla7188 3 ปีที่แล้ว

    give some lecture on trigger

  • @pritisatone159
    @pritisatone159 3 ปีที่แล้ว

    Unfortunately, there was a problem. Please try again. If the problem continues, get in touch with your administrator with the error ID shown here and any other related details.Error ID: 2027631396-11118 (1874544200)when i am login see the popup everytime can you suggest me why this error getting

  • @PankajGupta86
    @PankajGupta86 3 ปีที่แล้ว

    Shortcut to time where he is using Flows
    th-cam.com/video/RFz6tfmAXyA/w-d-xo.html
    Thanks for the video