Create feedback or score or rating on the Case using flow #inSalesforce

Create feedback or score or rating on the Case using flow


Create a screen flow

GET RECORD Element: getCase
get current case
Object: Case 
Criteria: Id equals create new resource text type recordId (input checked)
only first rec, automa....

DECISION Element:
check the case is closed or not
getCase.status equals Closed

If not closed, display text for error msg - case needs to be closed for feedback

If closed:

DECISION - Score greater equal 0  (If Score > 0, feedback given else have to provide)

SCREEN Element - 
Drag drop Radio button, label (provide case feedback!), Datatype - number, Choice - new resource, choice resource type, choiceYes, Yes, datatype number choice value 1, add choice - new resource, choice resource type, choiceNo, datatype number choice value 0

SCREEN Element - Drag drop Slider, name - rating Score, label - select the rating. max - 5 min - 0, size - default, manually assign variable:
Value: new resource, variable, sliderRating API, datatype - Number, decimal - 0
Update the footer as per need, Name the Screen, Connect the elements

ASSIGNMENT Element -
getCase.Score equals new resource formula, score total, data - number, decimal - 0, formula = sliderRating


UPDATE ELEMENT:
Use the Ids and...
getCase

Save

Debug to test


In Case record, drag-drop flow, select the flow, pass record id...checked

Add the Flow (as filer as per need)

Save and activate the lightning record page























Comments