• Joy Bing
  • NEWBIE
  • -4 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 5
    Replies
I have a VF page that is basically created to generate a PDF document .
How do i add page breaks in this. 
The code is generating PDF and how ever i need a page break (need some content to be displayed in a fresh page).
How to do this.
Please suggest.
Hi Guys

I have gone through help article: 
https://help.salesforce.com/articleView?id=000336672&type=1&mode=1

I'm not getting what is exactly they described about error.

I'm new to this issue. explain me in details with use case.

What  is starting point of this issue and where is last point to close this issue.

Thanks in advance
I created an LWC to create a new record for a standard object, i am able to create  successfully for an account object.But its throwing an error while creating a new record .
Here is the code i wrote :
FOR ACCOUNT OBJECT:
HTML file:--
<template>
   <Lightning-record-form 
        object-api-name={accountobject} 
        fields={fields} 
        onsuccess={handleAccountCreate}>      
   </Lightning-record-form> 
</template>
JS file :--
import { LightningElement } from 'lwc';
import ACCOUNT_OBJECT from '@salesforce/schema/Account';
import NAME_FIELD from '@salesforce/schema/Account.Name';
import WEBSITE_FIELD from '@salesforce/schema/Account.Website';
export default class CreateNewRecord extends LightningElement {
    accountobject = ACCOUNT_OBJECT;
    fields =[NAME_FIELD , WEBSITE_FIELD];
    handleAccountCreate(){
    }
}
For the above piece of code its working fine.But for the below code for a custom object record creation 
HTML file :--
<template>
    <Lightning-record-form  object-api-name={objectApiName} 
                            fields={fields} 
                            onsuccess={handleSuccess}>
    </Lightning-record-form>
</template>
JS file :--
import { LightningElement ,api } from 'lwc';
import {ShowToastEvent} from 'Lightning/platformShowToastEvent';
import AREA__c_OBJECT from '@salesforce/schema/Area__c';
import NAME_FIELD from '@salesforce/schema/Area__c.Name';
import PINCODE_FIELD from '@salesforce/schema/Area__c.pincode__c';
export default class CustomeObjectRecordCreate extends LightningElement {
    @api objectApiName;
    AreaName = AREA__c_OBJECT;
    fields = [NAME_FIELD , PINCODE_FIELD];
    handleSuccess(event){
        const evt = new ShowToastEvent({
           title:"record created", 
            message:event.detail.NAME_FIELD,
            variant:"success"
        });
            this.dispatchEvent(evt);
    }
}

in the code above "Area " is the name of custome object.and Name and pincode are the fields in custom object.
Plz help me for that.thanks in advance.

 
I want to put this out to the sfdc developer community to see if anyone has some feedback on a question I've received as part of a technical assessment for a Salesforce developer role. 

Specifically, a hiring manager has asked me the following:
 
Given the following 2 classes:
Class Folder
name: string
parent: Folder
 
Class File
name: string
parent: Folder
 
Complete the following function in pseudocode to return the full string path of a file.
 
function getFullFilePath(file: File): string {
         …
return path
}
My question is can someone please explain to me how you would respond to this? Also, what is your interpretation of what is being asked?

 
  • January 25, 2020
  • Like
  • 0
Hi All,

I want to auto deactivate the user if user last login date is less than 3 months. I'm using workflow, but in criteria meet  it's showing error in time value.. 
can you please help?

Thanks
Vivek