• pratiksha tamrakar
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi ,
I am new to salesforce and trying some basic code. I was trying to check the number whether the number is prime or not , But not getting idea of code . Can anyone please help me.

I had to write a record type  in a test class.What i did was I hard coded the record type id.Is is this a proper way or is there any alternate way to do it

 

 

Example

 

RecordTypeId='47uyfkfkhs65fufdu'

 

 

Is hard coding a record type a good practice