Actually I need to add Icon on Case by calculating customer order. If Customer have 10 orders then need to display Bronze Icon and if customer ordered less than 10 then display silver,etc
I have shared screenshot please find below attachment
Is the order count available in account or case? or you need to calculate number of orders related to account and then populate the icons like Broze, silver etc?
Can you please explain more about your requirement.?
Regards,
Ankaiah Bandi
Hi Ankaiah,
Actually I need to add Icon on Case by calculating customer order. If Customer have 10 orders then need to display Bronze Icon and if customer ordered less than 10 then display silver,etc
I have shared screenshot please find below attachment
Thank You
Is the order count available in account or case? or you need to calculate number of orders related to account and then populate the icons like Broze, silver etc?
Regards,
Ankaiah
Hi Ankaiah,
No,first need to count total order for particular customer and then populate icons.
You need to implement trigger on Case to get the total order count for particular customer and keep the value in custom field(total order count).
Then create a formula field called icon using the custom field(total_order_count__c) as like below.
Regards,
Ankaiah Bandi
Hi Ankaiah,
It is possible to show Icon on Case Summary (Compact Layouts) using custom fields?
Is possible to add the field compact layout but you have limitation to display max 10 fields.
Please refer the below article.
https://help.salesforce.com/s/articleView?id=sf.compact_layout_notes.htm&type=5
Regards,
Ankaiah Bandi
Hi Ankaiah,
I have created Formula fields and added condition as you mentions
If(Order_Count__c>=3, " /resource/bronze",(If(AND(Order_Count__c <3,Order_Count__c>=5), " /resource/silver", " /resource/gold")))
I got below error
Error: Formula result is data type (Text), incompatible with expected data type (number).
can you please guide me with the same
Thank You