• Sarah Smith 15
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 6
    Replies
VALUE( 
IF( 
LEN(SUBSTITUTE(Account.Software_Version__c, '.', ''))=5, 
SUBSTITUTE(RPAD(Account.Software_Version__c,6,'0'), '.', ''), 
SUBSTITUTE(Account.Software_Version__c, '.', '') 
)) 

>= 

VALUE( 
IF( 
LEN(SUBSTITUTE(Target_Release__c, '.', ''))=5, 
SUBSTITUTE(RPAD(Target_Release__c,6,'0'), '.', ''), 
SUBSTITUTE(Target_Release__c, '.', '') 
))
We have created a custom button on the feed called "New Task". When we use it the feed details show:
[Task Subject] - [Task creator] created a task.
[Task Subject] date
[Case number]

We would like to change this to display:
[Task Type] - [Task creator] created a task.
[Task Subject] date
[Task Comments]
We have multiple Record Types on the Case object.  We also have folks who work across Record Types (they're not just tied to a single Record Type).

I tried writing a Lightning Web Component to bubble up the Record Type name so Staff know if they're working with a record that is RecordType1, RecordType2, or RecordType3.

While I can pull other pieces of data from the Case object (such as Case Number, and Contact), I can't seem to expose the name of the Record type.  Any ideas?  I'm pretty new to development so I've been trying to cobble something together and would appreciate any insight / thoughts and help!

Here's my code snippets.

recordTypeForCase.js
import { LightningElement, api } from 'lwc';

export default class HelixITSMType extends LightningElement {
    @api recordId; // Case Id
}

RecordTypeForCase.html​​​​​​​
<template>
    <lightning-card class="slds-text-title_bold" title="Record Type" icon-name="standard-people">
        <div class="slds-m-around_medium">
        <!-- Show Helix ITSM Record Type when Case is loaded -->
            <lightning-record-view-form record-id={recordId} object-api-name="Case">
                <div class="slds-grig">
                    <div class="slds-col slds-size_1-of-2">
                        <lightning-output-field field-name="CaseNumber"></lightning-output-field>
                        <lightning-output-field field-name="RecordTypeId"></lightning-output-field>
                        <lightning-output-field field-name="ContactId"></lightning-output-field>
                    </div>
                </div>
            </lightning-record-view-form>
        </div>
     </lightning-card>   
</template>

Thank you in advance for your help and advice.  

Virginia
VALUE( 
IF( 
LEN(SUBSTITUTE(Account.Software_Version__c, '.', ''))=5, 
SUBSTITUTE(RPAD(Account.Software_Version__c,6,'0'), '.', ''), 
SUBSTITUTE(Account.Software_Version__c, '.', '') 
)) 

>= 

VALUE( 
IF( 
LEN(SUBSTITUTE(Target_Release__c, '.', ''))=5, 
SUBSTITUTE(RPAD(Target_Release__c,6,'0'), '.', ''), 
SUBSTITUTE(Target_Release__c, '.', '') 
))
we are getting error . when i open https://dev6-mdlive.cs91.force.com/BrokerPortal/ then we getting error  Bad Message 431
reason: Request Header Fields Too Large and also

An internal server error has occurred
An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact Salesforce Support. Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience.

Thank you again for your patience and assistance. And thanks for using salesforce.com!

Error ID: 1248621760-22363 (792711711)

please give me solution
username :sonuiec@gmail.com
 
We have created a custom button on the feed called "New Task". When we use it the feed details show:
[Task Subject] - [Task creator] created a task.
[Task Subject] date
[Case number]

We would like to change this to display:
[Task Type] - [Task creator] created a task.
[Task Subject] date
[Task Comments]