• Danny Incompany
  • NEWBIE
  • 20 Points
  • Member since 2012
  • CTO
  • Incompany Solutions


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 16
    Questions
  • 17
    Replies
Hi, We are setting up a integration within salesforce and SAP ERP. Security is critical in this integration and we are wondering what is the best way we can have or achieve maximum security to ensure that ONLY this Salesforce ORG makes or receive API calls.

We are going with the option on setting up a whitelist for the Salesforce IP ranges, however this will allow other Salesforce instances to make requests, since they are coming from the same IP range we have set in the whitelist. Is there a way to make sure all API calls are coming ONLY from the salesforce ORG we are using? What will you suggest to ensure this? Thanks!

Hi, we have a situation where a customer is stating that the workflow rules and alerts where working some way and we believe is technically imposible, however need to confirm this.

Scenario: 
Object: Opportunity
Deposit_deadline__c = formula field that takes the deposit deadline from related Trip object.
npe01__Payments_Made__c = currency field

Object: Trips
Not_Alerts__c = checkbox field
Deposit_Deadline__c = date field

Workflow Criteria (in opportunity object):
AND( (TODAY() + 7 ) == Trip__r.Deposit_Deadline__c , npe01__Payments_Made__c != Amount,Trip__r.Not_Alerts__c = False)

If I edit the opportunity to comply with the rule criteria, and lets say the the deposit deadline is 7 days from now, the rulle will trigger or create the time trigger to trigger an alert for tomorrow or immediatelly (depending on how I have set it up). However, customer states that the deposit deadline date, if set for, lets say 7 days from next friday, then the alert will trigger on Friday, automatically, without having someone go and edit the opportunity.

I believe this is technically impossible, due that the alerts will trigger based upon creation or upon editing a trigger. Is it possible that if a rule today does not comply with rule criteria, but tomorrow does comply because date has changed for that time, triggers the alert? Or is it exctriclty necessary that a user has to edit or create the opportunity?

How would you recommend on setting payment reminders on Salesforce? I think with workflows it may not be possible.

I think there is a related idea on this:

https://success.salesforce.com/ideaView?id=08730000000kymqAAA

Thanks for your help.

Hi,

Good afternoon and hope everyone is fine. Blessings for this year. I have a question that I have been trying to resolve since few months ago and not able to find a workable solution.

Basically we have a site, html and angular site, which is a site where you can find properties. This properties come from salesforce object, along with other objects. 

In order to display salesforce objects in a public site, in the past we have created visualforce pages, with their corresponding classes, we attach the visualforce page to a public site and configure a custom domain. This ok when you are going to have ALL site content in salesforce.

But what happens when you have an existing HTML site, hosted in a CMS (content management system), where users can have access to things like blogs, a third party hosting. The only way to integrate some content from salesforce to an existing site in a third party hosting, is using a <iframe src="http://mysitehostedinsalesforce.com"></iframe>, and use this inside an HTML page, however this is not a good practice as sites may become slow, and also google does now crawl iframes, or at least it takes ranking down.

We have tested several ways, we tested on using REST API, to read data from salesforce and display it in a public site, however this is not a good solution as public visitors may need to login with a salesforce licence user in order to view content in the public site. Also we have tested with Connected Apps, however seems it is not possible, or at least after trying, we are not sure what is the way to go.

From Salesforce perspective and best practices, what is the best way to achieve this? Which salesforce functionality will help up us finish this project.
Hi,

I have configured a custom domain in Salesforce and configured cnames in godaddy as explained in instructions.

My goal is to set the domain to www.setelmovil.com/portal

I have already created the domains and the custom urls also. However it does not seem to work. This is my godaddy config:

User-added image

I ahve tried several ways but seems it needs time to propagate and when I try different I am not sure if last one worked. I have no changed the cname to:

User-added image

Any help appreciated.
Hi,

We are integrating salesforce to oracle 10g using SOAP dataloader. It gives an error. Not sure what may be wrong. Here are the files and information we have, any help will be gretaly apreciated:

DATABASE-CONF.XML
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="dbDataSource"
      class="org.apache.commons.dbcp.BasicDataSource"
      destroy-method="close">
    <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
    <property name="url" value="jdbc:oracle:thin:@localhost:1521:XE"/>
    <property name="username" value="naf6"/>
    <property name="password" value="naf6"/>
</bean>

<bean id="queryAsiento"
      class="com.salesforce.dataloader.dao.database.DatabaseConfig"
      singleton="true">
    <property name="sqlConfig" ref="queryAsientoSql"/>
    <property name="dataSource" ref="dbDataSource"/>
</bean>

<bean id="insertAsiento"
      class="com.salesforce.dataloader.dao.database.DatabaseConfig"
      singleton="true">
    <property name="sqlConfig" ref="insertAccountSql"/>
    <property name="dataSource" ref="dbDataSource"/>
</bean>

<bean id="insertAccountSql"
      class="com.salesforce.dataloader.dao.database.SqlConfig" singleton="true">
    <property name="sqlString">
        <value>
            INSERT INTO SF_ARCGAE (
               ANO, MES, NO_CUOTA , NO_OPERACION , DESCRI1, COD_DIARIO,T_DEBITOS,T_CREDITOS, NO_CIA, NO_ASIENTO,FECHA, AUTORIZADO, ORIGEN,T_CAMB_C_V,NO_COMPROBANTE,NO_PRODUCTO,ID_CLIENTE,NOM_CLIENTE)
            VALUES (@ANO@, @MESES@, @NOCUOTA@, @NO_OPERACION@, @DESCRI1@, 'CONTA', @CREDITOS@, @DEBITOS@, '10', @DIARIO@,@Fecha@,'N', 'SF','V',0,'Test','9999','Cesar')
        </value>
    </property>
    <property name="sqlParams">
        <map>
            <entry key="ANO"    value="java.lang.String"/>
			<entry key="MESES"  value="java.lang.Double"/>
			<entry key="NOCUOTA" value="java.lang.String"/>
            <entry key="NO_OPERACION"  value="java.lang.String"/>          
            <entry key="DESCRI1"  value="java.lang.String"/>           
            <entry key="DIARIO"  value="java.lang.String"/>
			<entry key="CREDITOS"  value="java.lang.Double"/>
            <entry key="DEBITOS"  value="java.lang.Double"/>
			<entry key="Fecha"  value="java.lang.String"/>
        </map>
    </property>
</bean>



<bean id="insertLinea"
      class="com.salesforce.dataloader.dao.database.DatabaseConfig"
      singleton="true">
    <property name="sqlConfig" ref="insertLineaSql"/>
    <property name="dataSource" ref="dbDataSource"/>
</bean>


<bean id="insertLineaSql"
      class="com.salesforce.dataloader.dao.database.SqlConfig" singleton="true">
    <property name="sqlString">
        <value>
            INSERT INTO SF_ARCGAL (
               NO_CIA , ANO, MES , NO_ASIENTO , NO_LINEA, CUENTA,DESCRI,COD_DIARIO,MONEDA,MONTO,TIPO)
            VALUES ('10', @ANO@, @MES@, @NO_ASIENTO@, @NO_LINEA@, @CUENTA@, @DESCRI@, 'CONTA', 'C',@MONTO@,@TIPO@)
        </value>
    </property>
    <property name="sqlParams">
        <map>
            <entry key="ANO"    value="java.lang.String"/>
			<entry key="MES"  value="java.lang.integer"/>
			<entry key="NO_ASIENTO" value="java.lang.String"/>
            <entry key="NO_LINEA"  value="java.lang.String"/>          
            <entry key="CUENTA"  value="java.lang.String"/>           
            <entry key="DESCRI"  value="java.lang.String"/>
			<entry key="MONTO"  value="java.lang.Double"/>
            <entry key="TIPO"  value="java.lang.String"/>
        </map>
    </property>
</bean>


</beans>
MAPPING "ASIENTOS"
Credito__c = NO_OPERACION
Year__c = ANO
Pago__c = NOCUOTA
Descripcion__c = DESCRI1
Month__c = MESES
Name = DIARIO
TotalCreditos__c = DEBITOS
TotalDebitos__c = CREDITOS
CreatedDate = Fecha
MAPPING "LINEAS"
ANO = Ano__c        
MES = Mes__c                                  
NO_ASIENTO = Asiento_FK__c              
NO_LINEA = Name                    
CUENTA = CodigoCuentasContables__c                         
DESCRI = CuentasContables__c                                                                                        
MONTO = Monto__c                          
TIPO = Tipo_Oracle__c
PROCESS-CONF.XML
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>


    <bean id="databaseAccountExtractProcess"
          class="com.salesforce.dataloader.process.ProcessRunner"
          singleton="false">
        <description>DatabaseAccountExtract job gets Asiento info from salesforce and updates or inserts info into database."</description>
        <property name="name" value="databaseAccountExtract"/>
        <property name="configOverrideMap">
            <map>
                <entry key="sfdc.debugMessages" value="false"/>
				<entry key="sfdc.debugMessagesFile" value="C:\ProgramFiles (x86)\salesforce.com\Data Loader\Configuracion Funde\ProductoSoapTrace.log"/>               
                <entry key="sfdc.endpoint" value="https://login.salesforce.com"/>
                <entry key="sfdc.username" value="salesforce@email.com"/>
                <!-- password specified below is invalid, please generate one using the encrypt.bat utility -->
                <entry key="sfdc.password" value="theencryptedpassword"/>
                <entry key="sfdc.timeoutSecs" value="600"/>
                <entry key="sfdc.loadBatchSize" value="200"/>
                <entry key="sfdc.entity" value="Asiento__c"/>
                <entry key="sfdc.extractionRequestSize" value="200"/>
                <entry key="sfdc.extractionSOQL" value="select Credito__c,Year__c,Pago__c,Descripcion__c,Month__c,Name,TotalCreditos__c,TotalDebitos__c, CreatedDate from Asiento__c limit 1"/>
                <entry key="process.operation" value="extract"/>
                <entry key="process.mappingFile" value="C:\Program Files (x86)\salesforce.com\Data Loader\Configuracion Funde\conf\AsientoMap.sdl"/>                
                <entry key="dataAccess.type" value="databaseWrite"/>
                <entry key="dataAccess.name" value="insertAsiento"/>
            </map>
        </property>
    </bean>
	
	
		    <bean id="LineasExtractProcess"
          class="com.salesforce.dataloader.process.ProcessRunner"
          singleton="false">
        <description>DatabaseAccountExtract job gets Asiento info from salesforce and updates or inserts info into database."</description>
        <property name="name" value="databaseAccountExtract"/>
        <property name="configOverrideMap">
            <map>
                <entry key="sfdc.debugMessages" value="false"/>
				<entry key="sfdc.debugMessagesFile" value="C:\ProgramFiles (x86)\salesforce.com\Data Loader\Configuracion Funde\ProductoSoapTrace.log"/>               
                <entry key="sfdc.endpoint" value="https://login.salesforce.com"/>
                <entry key="sfdc.username" value="salesforce@emial.com"/>
                <!-- password specified below is invalid, please generate one using the encrypt.bat utility -->
                <entry key="sfdc.password" value="THEENCRYPTEDPASSWORD"/>
                <entry key="sfdc.timeoutSecs" value="600"/>
                <entry key="sfdc.loadBatchSize" value="200"/>
                <entry key="sfdc.entity" value="LineaAsiento__c"/>
                <entry key="sfdc.extractionRequestSize" value="500"/>
                <entry key="sfdc.extractionSOQL" value="select Ano__c,Mes__c,Asiento_FK__c,Name,CodigoCuentasContables__c,CuentasContables__c,Monto__c,Tipo_Oracle__c from LineaAsiento__c"/>
                <entry key="process.operation" value="extract"/>
                <entry key="process.mappingFile" value="C:\Program Files (x86)\salesforce.com\Data Loader\Configuracion Funde\conf\LineasMap.sdl"/>                
                <entry key="dataAccess.type" value="databaseWrite"/>
                <entry key="dataAccess.name" value="insertLinea"/>
            </map>
        </property>
    </bean>

    
   
</beans>
THIS IS THE DEBUG
C:\Program Files (x86)\salesforce.com\Data Loader\Configuracion Funde>call "C:\P
rogram Files (x86)\salesforce.com\Data Loader\bin\process.bat" "C:\Program Files
 (x86)\salesforce.com\Data Loader\Configuracion Funde\conf" databaseAccountExtra
ctProcess
2015-11-30 14:36:06,986 INFO  [main] controller.Controller initLog (Controller.j
ava:382) - Reading log-conf.xml in C:\Program Files (x86)\salesforce.com\Data Lo
ader\Configuracion Funde\log-conf.xml
log4j:WARN Fatal parsing error 1 and column 1
log4j:WARN Premature end of file.
log4j:ERROR Could not parse file [C:\Program Files (x86)\salesforce.com\Data Loa
der\Configuracion Funde\log-conf.xml].
org.xml.sax.SAXParseException: Premature end of file.
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk
nown Source)
        at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
        at org.apache.log4j.xml.DOMConfigurator$1.parse(DOMConfigurator.java:749
)
        at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java
:866)
        at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java
:755)
        at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:8
91)
        at com.salesforce.dataloader.controller.Controller.initLog(Controller.ja
va:384)
        at com.salesforce.dataloader.process.ProcessRunner.ensureLogging(Process
Runner.java:173)
        at com.salesforce.dataloader.process.ProcessRunner.getInstance(ProcessRu
nner.java:266)
        at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.ja
va:246)
2015-11-30 14:36:07,095 INFO  [main] controller.Controller initLog (Controller.j
ava:391) - The log has been initialized
2015-11-30 14:36:07,126 INFO  [main] process.ProcessConfig getBeanFactory (Proce
ssConfig.java:104) - Loading process configuration from config file: C:\Program
Files (x86)\salesforce.com\Data Loader\Configuracion Funde\conf\process-conf.xml

2015-11-30 14:36:07,236 INFO  [main] support.AbstractApplicationContext prepareR
efresh (AbstractApplicationContext.java:495) - Refreshing org.springframework.co
ntext.support.FileSystemXmlApplicationContext@1ebd75b: startup date [Mon Nov 30
14:36:07 CST 2015]; root of context hierarchy
2015-11-30 14:36:07,329 INFO  [main] xml.XmlBeanDefinitionReader loadBeanDefinit
ions (XmlBeanDefinitionReader.java:315) - Loading XML bean definitions from file
 [C:\Program Files (x86)\salesforce.com\Data Loader\Configuracion Funde\conf\pro
cess-conf.xml]
2015-11-30 14:36:07,407 INFO  [main] support.DefaultListableBeanFactory preInsta
ntiateSingletons (DefaultListableBeanFactory.java:557) - Pre-instantiating singl
etons in org.springframework.beans.factory.support.DefaultListableBeanFactory@e6
4686: defining beans [databaseAccountExtractProcess,LineasExtractProcess]; root
of factory hierarchy
2015-11-30 14:36:07,501 INFO  [databaseAccountExtract] controller.Controller ini
tConfig (Controller.java:327) - config dir created at C:\Program Files (x86)\sal
esforce.com\Data Loader\Configuracion Funde\conf
2015-11-30 14:36:07,532 INFO  [databaseAccountExtract] controller.Controller ini
tConfig (Controller.java:355) - The controller config has been initialized
2015-11-30 14:36:07,548 INFO  [databaseAccountExtract] process.ProcessRunner run
 (ProcessRunner.java:116) - Initializing process engine
2015-11-30 14:36:07,579 INFO  [databaseAccountExtract] process.ProcessRunner run
 (ProcessRunner.java:119) - Loading parameters
2015-11-30 14:36:08,203 INFO  [databaseAccountExtract] config.LastRun load (Last
Run.java:96) - Last run info will be saved in file: C:\Program Files (x86)\sales
force.com\Data Loader\Configuracion Funde\conf\databaseAccountExtract_lastRun.pr
operties
2015-11-30 14:36:08,250 INFO  [databaseAccountExtract] process.ProcessRunner run
 (ProcessRunner.java:127) - Logging in to: https://login.salesforce.com
2015-11-30 14:36:08,265 INFO  [databaseAccountExtract] client.PartnerClient logi
n (PartnerClient.java:478) - Beginning Partner Salesforce login ....
2015-11-30 14:36:08,312 INFO  [databaseAccountExtract] client.PartnerClient logi
nInternal (PartnerClient.java:519) - Salesforce login to https://login.salesforc
e.com/services/Soap/u/35.0 as user mfeoli@fundecooperacion.org
2015-11-30 14:36:09,685 INFO  [databaseAccountExtract] dao.DataAccessObjectFacto
ry getDaoInstance (DataAccessObjectFactory.java:51) - Instantiating data access
object: insertAsiento of type: databaseWrite
2015-11-30 14:36:09,716 INFO  [databaseAccountExtract] xml.XmlBeanDefinitionRead
er loadBeanDefinitions (XmlBeanDefinitionReader.java:315) - Loading XML bean def
initions from file [C:\Program Files (x86)\salesforce.com\Data Loader\Configurac
ion Funde\conf\database-conf.xml]
2015-11-30 14:36:09,810 INFO  [databaseAccountExtract] process.ProcessRunner run
 (ProcessRunner.java:132) - Checking the data access object connection
2015-11-30 14:36:09,981 INFO  [databaseAccountExtract] process.ProcessRunner run
 (ProcessRunner.java:137) - Setting field types
2015-11-30 14:36:12,040 INFO  [databaseAccountExtract] process.ProcessRunner run
 (ProcessRunner.java:141) - Setting object reference types
2015-11-30 14:36:16,627 INFO  [databaseAccountExtract] process.ProcessRunner run
 (ProcessRunner.java:145) - Creating Map
2015-11-30 14:36:16,658 INFO  [databaseAccountExtract] action.OperationInfo inst
antiateAction (OperationInfo.java:95) - Instantiating action for operation: extr
act
2015-11-30 14:36:16,689 INFO  [databaseAccountExtract] controller.Controller exe
cuteAction (Controller.java:120) - executing operation: extract
2015-11-30 14:36:16,705 INFO  [databaseAccountExtract] action.AbstractAction exe
cute (AbstractAction.java:120) - Loading: extract
2015-11-30 14:36:17,812 ERROR [databaseAccountExtract] database.DatabaseWriter w
riteRowList (DatabaseWriter.java:211) - Database error encountered while writing
 row #1 through row #2 (execute batch update). Database configuration: insertAsi
ento.  Sql error: ORA-01861: literal does not match format string
.
java.sql.SQLException: ORA-01861: literal does not match format string

        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:112)
        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:330)
        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:287)
        at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:753)
        at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.
java:218)
        at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedSta
tement.java:971)
        at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
nt.java:1191)
        at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePrep
aredStatement.java:3414)
        at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
edStatement.java:3498)
        at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(Del
egatingPreparedStatement.java:105)
        at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(Del
egatingPreparedStatement.java:105)
        at com.salesforce.dataloader.dao.database.DatabaseWriter.writeRowList(Da
tabaseWriter.java:177)
        at com.salesforce.dataloader.action.visitor.AbstractQueryVisitor.writeBa
tch(AbstractQueryVisitor.java:130)
        at com.salesforce.dataloader.action.visitor.AbstractQueryVisitor.flushRe
sults(AbstractQueryVisitor.java:123)
        at com.salesforce.dataloader.action.visitor.AbstractQueryVisitor.visit(A
bstractQueryVisitor.java:84)
        at com.salesforce.dataloader.action.AbstractExtractAction.visit(Abstract
ExtractAction.java:57)
        at com.salesforce.dataloader.action.AbstractAction.execute(AbstractActio
n.java:129)
        at com.salesforce.dataloader.controller.Controller.executeAction(Control
ler.java:121)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:149)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:100)
        at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.ja
va:253)
2015-11-30 14:36:18,218 INFO  [databaseAccountExtract] progress.NihilistProgress
Adapter doneSuccess (NihilistProgressAdapter.java:63) - The operation has fully
completed.  There were 0 successful extractions and 1 errors.
Press any key to continue . . .

Any help I invite a beer!! thanks!
Hi,

We have a customer that accidentally changed the field type and because of this, the data in the field was lost. Anyone knows a way to recover the data lost in the field?
Hi,

I am working on a workflow tha does not seem to be working and I think, I should go for it with a trigger, but not sure.

So this is the scenario:

ObjectP__c
Has a picklist field called State__c

ObjectE__c 
-​Has a formula field called State__c that just adds the value of the State__c field in ObjectP
-Has a text field called State2__c (which populates value of State__c on same object with a workflow update rule every time it edits), so I can use it as a condition I need in a rollup summary field on ObjectO__c (since formula fields are not available for conditioning when creating rollup summary fields).
-Has a Master-Detail relationship to ObjectO__c

ObjectO__c
I have a rollup summary field called Amount__c which basically needs to count the related ObjectE__c child records, with the condition that it will count only the ones with the State2__c with value "Active" (that at the end is coming from State__c field in ObjectE__c)

The Problem
So my issue here is that if the field State__c value of ObjectP__c changes to a different value, for example "Inactive", the State__c of ObjectE__c will also change, however, the field State2__c will remain with the old value "Active" (since it will only change if I edit the ObjectE__c record to trigger the workflow), giving me an incorrect Count of "Active" child records on the rollup summary field on ObjectO__c.

It is not an option for the customer, that every time he changes the State on the ObjectP__c record, to make a second step and update the ObjectE__c record, so the value on State2__c will be same as in ObjectP__c to count correctly the records on ObjectO__c

So my question is, how can I achive this? With a Trigger? if so, can you provide an example? or there another option for achiving this? I may think of a trigger that every time ObjectP__c State__c changes to change the value automatically on State2__c field on ObjectE__c, with out having to edit the record and save it. I need the value of field State2__c field on ObjectE__c to always have the same value of State__c on ObjectP__c.

Thanks and any help is greatly appreciated. I am working on a school project and no way to find this.

Danny



 
Hi,

We have developed an apex class using the email service functionality. Everything works fine, emails sent to the long email service, are properly capture and sent to the correct object. With all info.

This is a service for end customers so providing a looong email service is not an option. So to resolve this what we are doing is using a short custom email (with google apps) and a forward all to the looong email service.

We have done this in the past and basically google email sents a confirmation number in order to approve the redirection. This confirmation number comes in a automated email which in the past we have succsefully find in the "Unresolved items", however this shortcut is not available anymore.

Any ideas where we can check the "Inbox" for this email service? In order to find the confirmation code sent by google and approve the redirection? Or where is this unresolved items?

Thanks, any help greatly appreciated.
Hi,

We have create a visualforce page attached to a button so users can print pdf with fields on object. The problem I am having is that when I use renderas="pdf", for some reason the stylesheet indicated is not rendering properly.

I have tried using the css in two forms, by url and by uploading it as a static resource, as you can see on lines 13 and 14 on the below code. Also I have tried using the tag "applyHtmlTag" with value false to see if this helps, also I have tried changing the api version and duplicating the vf page and nothing seems to work.

Any ideas on how I can make the css work? If I remove the renderas="pdf" tag the css shows properly. Thanks!

<apex:page standardController="Boleta_Manual__c" renderAs="pdf">

<html lang="en">
    <head>
    <style type="text/css">
            @page {
        size: 13in  21in ;
          }
          
           <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1"/>
        <title>factura</title>
        <apex:stylesheet value="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"/>
              <!--<apex:stylesheet value="{!URLFOR($Resource.bootstrap, 'css/bootstrap.min.css')}"/>-->
    </style>
     
        
    </head>
    <body>
        <div class="container" id="page">
            <div class="row">
                <div class="col-md-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                        <apex:image value="{!$Resource.setelHeader}"/>  
                        </div>
                        <table id="table-2"  class="table table-straped table-bordered">
                            <thead>
                            <tr>
                                <th>Boleta Setel</th>
                                <th>Distribuidor</th>
                                <th>Espeficique Otro</th>
                                <th>Boleta Cliente</th>
                            </tr>
                            </thead>
                            <tbody>
                                
                                <tr>
                                    <td><apex:outputField value="{!Boleta_Manual__c.name}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Distribuidor__c}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Espeficique_Otro__c}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.BoletaCliente__c}"/></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="panel panel-default">
                        <table class="table table-straped table-bordered">
                            <thead>
                                <tr>
                                    <th>Modelo</th>
                                    <th>IMEI</th>
                                    <th>Falla reportada</th>
                                    <th>Accesorios</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Modelo__c}"/></td>                    
                                    <td><apex:outputField value="{!Boleta_Manual__c.IMEI__c}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Falla_reportada__c}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Accesorios__c}"/></td>
                                </tr>
                                
                            </tbody>
                        </table>
                    </div>

                    <div class="panel panel-default">
                        <table class="table table-straped table-bordered">
                            <thead>
                            <tr>
                                <th>Estado</th>
                                <th>Razón</th>
                                <th>Técnico</th>
                                <th>Cliente</th>
                            </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Estado__c}"/></td>                    
                                    <td><apex:outputField value="{!Boleta_Manual__c.Raz_n__c}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.T_cnico__c}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Cliente__c}"/></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>

                    <div class="panel panel-default">
                         <table class="table table-straped table-bordered">
                            <thead>
                                <tr>
                                    <th>Observaciones</th>
                                    <th>Descripción de la reparación</th>
                                    <th>Producto Recibido</th>
                                    <th>Fecha de salida</th>
                                    <th>Owner</th>
                                    <th>Last Modified By</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td><apex:outputField value="{!Boleta_Manual__c.OBSERVACIONES__c}"/></td>                    
                                    <td><apex:outputField value="{!Boleta_Manual__c.Descripci_n_de_la_reparaci_n__c}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.ProductoRecibido__c}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Fecha_de_salida__c}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Owner.name}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.name}"/></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>

                    <div class="panel panel-default">
                         <table class="table table-straped table-bordered">
                            <thead>
                                <tr>
                                    <th>Codigo de Pieza</th>
                                    <th>Descripción del Producto</th>

                                    <th>Precio Costo Unidad</th>
                                    <th>Estado</th>
                                </tr>
                            </thead>
                            <tbody>
                                    <!-- Aqui Valores de el Servicio #1 -->
                                <apex:repeat value="{!Boleta_Manual__c.Piezas__r}" var="pr">
                                   <tr>
                                    <td><apex:outputField value="{!pr.Name}"/></td>
                                    <td><apex:outputField value="{!pr.Producto__r.Descripci_n__c}"/></td>

                                   <td><apex:outputField value="{!pr.Producto__r.Precio_de_compra__c}"/></td>
                                   <td><apex:outputField value="{!pr.Estado__c}"/></td>
                                </tr> 
                                </apex:repeat>
                            </tbody>
                        </table>
                    </div>

                    <div class="panel panel-default">
                         <table class="table table-straped table-bordered">
                            <thead>
                                <tr>
                                    <th>Diagnostico</th>
                                   
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Diagnostico__c}"/></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>

                </div>
            </div>
            
        </div>
    </body>
</html>

</apex:page>


Hi,

 

We have developed a e-commerce site that allows visitors to purchase products and pay online via a banking service:

 

http://ecommerce.test.cs11.force.com/colormelocoton

 

This is Sandbox environment. We have already migrated everything to production environment where we have registered a domain and already included in salesforce sites. The following image is a shot from production environment:

 

www.incompanycr.com/sites_shot.png

 

As you can see we have entered the custom domain. The issue is that the banking service requires this to be an https domain. Since the domain is registered with godaddy we have purchased a SSL certificate, after that I generated a certificate, download the key, add it on godaddy panel and then upload the response in the certificate generated in force.com. This process made the ceritificate active and everything went ok.

 

Thing is that I am not able to see the HTTPS in front of the domain, try it yourself:

 

https://www.colormelocoton.com

 

I already verified that on session settings the checkbox is ok on "Require secure connections (HTTPS)". I have a lot of experience in force.com however this is the first time I have to setup a Secure SSL domain and I dont know if I am doing something wrong or whats the deal.

 

Also I have pointed the CNAME on godaddy to the secure web address in the site details page and no change. Any help will be greatly appreciated.

 

Hi community,

 

I have created an e-commerce app in which visitors leave information on a form, when they fill the information on the form this creates an object in force.com database. The object foes under the name of the "Site guest user" due that I have the app in a site.

 

After they leave a message on the form, the controller sets the date in the description field:

 

n_cot.DescripcionCotizacion__c ='Compra de prueba dev @: ' + Datetime.now() + txt;

 

If I look at the object, the created date is ok, but the date in the description field (generated by the snippet code above), it is wrong, it is about 6 hours ahead.

 

I have changed the date and time in:

 

-Site Guest User Profile and user

-Admin user

-Company profile

 

Still no change. I am missing something? or this is something related due that I am still in Sandbox? any help appreciated. Thanks!

 

 

Hi,

We have built an e-commerce application on force.com platform with Apex code. We are sending an HTTP POST from the force.com platform to a location provided by a local banking web service, the endpoint is registered within the platform as required. The POST is successful, and we receive the proper response but it's not redirecting as it should.

The response contains the form to be displayed, it contains a whole html with a credit card information form on it. Several attempts to display the html in a new page have been successful but the form fails to function. Is there a way for the platform to redirect automatically after the POST, loading the document that it's receiving as a response in a new page?

Hi,

 

We have buil an e-commerce application on force.com platform. We are sending a HTTP POST from the force.com platform to a location provided by a local banking web service, the endpoint is registered within the platform as required. The POST is successful, and we receive the proper response but it's not redirecting as it should.

 

The response contains the form to be displayed, it contains a whole html with a credit card information form on it. Several attempts to display the html in a new page have been successful but the form fails to function. Is there a way for the platform to redirect automatically after the POST, loading the document that it's receiving as a response in a new page?

Hi,

 

We have developed an apex page and controller and placed this on a site on force.com. Once a record of the object is created its owner is "Site Guest User", if I created manually it will be created under the owner of the user I am logged in.

 

I have a workflow rule in which an email alert is sent to the email address field any time it is created. This works fine and there is no problem, but only when i create it manually with the internal user.

 

If the record is created from the public site, and the owner becomes the "Site Guest User", the workflow rule won't activate, it only activates when the owner is the internal user.

 

Any ideas why this may be going on? Thanks!

Hi,

 

We have the following site:

 

www.vymisa.com/app/home.html

 

When accesing the page it displays the following error:

 

Authorization Required 

You must first log in or register before accessing this page. 
If you have forgotten your password, click Forgot Password to reset it. 

 

We have already checked Public Profile Read, Create, Edit and Delet for the object, also check field level security on the fields. Not sure what is the problem.

 

Also the page has security enabled for the profile.

 

Would appreciate some help! Thanks!

 

-Peña

Hello all,

 

We are building an app in which one of the pages requires information submitted by the user. So we have set a few "input fields" in the vf page so the user can enter the information.

 

Problem is that the input fields are not rendering, they are showing as visible and does not allow to input. We checked the field accesibility and security of the fields, so they are accesible to such profile and also verified that the public profile has read, edit, delet on the object permission.

 

Any ideas on what may be the problem? Or what else we could check? Thanks folks!

 

Here is the code

 

<apex:tab id="tab_cliente_actual" label="Cliente X" title="Cliente X" rendered="{!is_cliente==true}">
<apex:form >
<apex:pageblock >
<apex:pageBlockSection id="cliente_data" title="Datos del cliente">
<apex:pageBlockSectionItem >Nombre del Cliente: <apex:inputField value="{!current_cliente.name}"/></apex:pageBlockSectionItem>
<p>
<apex:commandButton value="GUARDAR CLIENTE" action="{!guardar_datos}">
<apex:actionSupport event="onclic" rerender="tab_granjas"/> 
</apex:commandButton> 
</p>
</apex:pageBlockSection>


<apex:pageBlockSection id="block_granjas" title="Granjas">


<apex:pageblock >
<div id="results">
<h2>Lista de granjas</h2>
<apex:pageBlockTable value="{!Granjas_list}" var="p" id="results2"> 

<apex:column value="{!p.Name}"/>
<apex:column headerValue="Acciones" >

<apex:commandLink value="ver" action="{!go_granja}">
<apex:actionSupport event="onclic" rerender="tab_panel"/> 
<apex:param name="id" assignTo="{!current_id}" value="{!p.Id}" /> 
</apex:commandLink>
</apex:column> 
</apex:pageBlockTable>
</div> 
</apex:pageblock> 
</apex:pageBlockSection> 
</apex:pageblock>
<apex:commandButton value="RETORNAR A CLIENTES" action="{!go_start}">
</apex:commandButton> 
</apex:form>
</apex:tab>
 

 

Hi, we have a situation where a customer is stating that the workflow rules and alerts where working some way and we believe is technically imposible, however need to confirm this.

Scenario: 
Object: Opportunity
Deposit_deadline__c = formula field that takes the deposit deadline from related Trip object.
npe01__Payments_Made__c = currency field

Object: Trips
Not_Alerts__c = checkbox field
Deposit_Deadline__c = date field

Workflow Criteria (in opportunity object):
AND( (TODAY() + 7 ) == Trip__r.Deposit_Deadline__c , npe01__Payments_Made__c != Amount,Trip__r.Not_Alerts__c = False)

If I edit the opportunity to comply with the rule criteria, and lets say the the deposit deadline is 7 days from now, the rulle will trigger or create the time trigger to trigger an alert for tomorrow or immediatelly (depending on how I have set it up). However, customer states that the deposit deadline date, if set for, lets say 7 days from next friday, then the alert will trigger on Friday, automatically, without having someone go and edit the opportunity.

I believe this is technically impossible, due that the alerts will trigger based upon creation or upon editing a trigger. Is it possible that if a rule today does not comply with rule criteria, but tomorrow does comply because date has changed for that time, triggers the alert? Or is it exctriclty necessary that a user has to edit or create the opportunity?

How would you recommend on setting payment reminders on Salesforce? I think with workflows it may not be possible.

I think there is a related idea on this:

https://success.salesforce.com/ideaView?id=08730000000kymqAAA

Thanks for your help.

Hi,

Good afternoon and hope everyone is fine. Blessings for this year. I have a question that I have been trying to resolve since few months ago and not able to find a workable solution.

Basically we have a site, html and angular site, which is a site where you can find properties. This properties come from salesforce object, along with other objects. 

In order to display salesforce objects in a public site, in the past we have created visualforce pages, with their corresponding classes, we attach the visualforce page to a public site and configure a custom domain. This ok when you are going to have ALL site content in salesforce.

But what happens when you have an existing HTML site, hosted in a CMS (content management system), where users can have access to things like blogs, a third party hosting. The only way to integrate some content from salesforce to an existing site in a third party hosting, is using a <iframe src="http://mysitehostedinsalesforce.com"></iframe>, and use this inside an HTML page, however this is not a good practice as sites may become slow, and also google does now crawl iframes, or at least it takes ranking down.

We have tested several ways, we tested on using REST API, to read data from salesforce and display it in a public site, however this is not a good solution as public visitors may need to login with a salesforce licence user in order to view content in the public site. Also we have tested with Connected Apps, however seems it is not possible, or at least after trying, we are not sure what is the way to go.

From Salesforce perspective and best practices, what is the best way to achieve this? Which salesforce functionality will help up us finish this project.
Hi,

We have a customer that accidentally changed the field type and because of this, the data in the field was lost. Anyone knows a way to recover the data lost in the field?
what is the junction object in standard salesforce objects
I have been asked to create an Email Alert for the Opportunity Owner and his/her boss when an opportunity has remained in a stage for 30 days, then another alert, when time in stage = 60, and so on. Can you please help or advise a workaround.

I have tried to specify the ISCHANGED function, but the picklist would not accept this function. 

Could you let me know about this please.

Thanks
Hi,

We have create a visualforce page attached to a button so users can print pdf with fields on object. The problem I am having is that when I use renderas="pdf", for some reason the stylesheet indicated is not rendering properly.

I have tried using the css in two forms, by url and by uploading it as a static resource, as you can see on lines 13 and 14 on the below code. Also I have tried using the tag "applyHtmlTag" with value false to see if this helps, also I have tried changing the api version and duplicating the vf page and nothing seems to work.

Any ideas on how I can make the css work? If I remove the renderas="pdf" tag the css shows properly. Thanks!

<apex:page standardController="Boleta_Manual__c" renderAs="pdf">

<html lang="en">
    <head>
    <style type="text/css">
            @page {
        size: 13in  21in ;
          }
          
           <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1"/>
        <title>factura</title>
        <apex:stylesheet value="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"/>
              <!--<apex:stylesheet value="{!URLFOR($Resource.bootstrap, 'css/bootstrap.min.css')}"/>-->
    </style>
     
        
    </head>
    <body>
        <div class="container" id="page">
            <div class="row">
                <div class="col-md-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                        <apex:image value="{!$Resource.setelHeader}"/>  
                        </div>
                        <table id="table-2"  class="table table-straped table-bordered">
                            <thead>
                            <tr>
                                <th>Boleta Setel</th>
                                <th>Distribuidor</th>
                                <th>Espeficique Otro</th>
                                <th>Boleta Cliente</th>
                            </tr>
                            </thead>
                            <tbody>
                                
                                <tr>
                                    <td><apex:outputField value="{!Boleta_Manual__c.name}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Distribuidor__c}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Espeficique_Otro__c}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.BoletaCliente__c}"/></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="panel panel-default">
                        <table class="table table-straped table-bordered">
                            <thead>
                                <tr>
                                    <th>Modelo</th>
                                    <th>IMEI</th>
                                    <th>Falla reportada</th>
                                    <th>Accesorios</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Modelo__c}"/></td>                    
                                    <td><apex:outputField value="{!Boleta_Manual__c.IMEI__c}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Falla_reportada__c}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Accesorios__c}"/></td>
                                </tr>
                                
                            </tbody>
                        </table>
                    </div>

                    <div class="panel panel-default">
                        <table class="table table-straped table-bordered">
                            <thead>
                            <tr>
                                <th>Estado</th>
                                <th>Razón</th>
                                <th>Técnico</th>
                                <th>Cliente</th>
                            </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Estado__c}"/></td>                    
                                    <td><apex:outputField value="{!Boleta_Manual__c.Raz_n__c}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.T_cnico__c}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Cliente__c}"/></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>

                    <div class="panel panel-default">
                         <table class="table table-straped table-bordered">
                            <thead>
                                <tr>
                                    <th>Observaciones</th>
                                    <th>Descripción de la reparación</th>
                                    <th>Producto Recibido</th>
                                    <th>Fecha de salida</th>
                                    <th>Owner</th>
                                    <th>Last Modified By</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td><apex:outputField value="{!Boleta_Manual__c.OBSERVACIONES__c}"/></td>                    
                                    <td><apex:outputField value="{!Boleta_Manual__c.Descripci_n_de_la_reparaci_n__c}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.ProductoRecibido__c}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Fecha_de_salida__c}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Owner.name}"/></td>
                                    <td><apex:outputField value="{!Boleta_Manual__c.name}"/></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>

                    <div class="panel panel-default">
                         <table class="table table-straped table-bordered">
                            <thead>
                                <tr>
                                    <th>Codigo de Pieza</th>
                                    <th>Descripción del Producto</th>

                                    <th>Precio Costo Unidad</th>
                                    <th>Estado</th>
                                </tr>
                            </thead>
                            <tbody>
                                    <!-- Aqui Valores de el Servicio #1 -->
                                <apex:repeat value="{!Boleta_Manual__c.Piezas__r}" var="pr">
                                   <tr>
                                    <td><apex:outputField value="{!pr.Name}"/></td>
                                    <td><apex:outputField value="{!pr.Producto__r.Descripci_n__c}"/></td>

                                   <td><apex:outputField value="{!pr.Producto__r.Precio_de_compra__c}"/></td>
                                   <td><apex:outputField value="{!pr.Estado__c}"/></td>
                                </tr> 
                                </apex:repeat>
                            </tbody>
                        </table>
                    </div>

                    <div class="panel panel-default">
                         <table class="table table-straped table-bordered">
                            <thead>
                                <tr>
                                    <th>Diagnostico</th>
                                   
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td><apex:outputField value="{!Boleta_Manual__c.Diagnostico__c}"/></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>

                </div>
            </div>
            
        </div>
    </body>
</html>

</apex:page>


Hi,

 

We have developed a e-commerce site that allows visitors to purchase products and pay online via a banking service:

 

http://ecommerce.test.cs11.force.com/colormelocoton

 

This is Sandbox environment. We have already migrated everything to production environment where we have registered a domain and already included in salesforce sites. The following image is a shot from production environment:

 

www.incompanycr.com/sites_shot.png

 

As you can see we have entered the custom domain. The issue is that the banking service requires this to be an https domain. Since the domain is registered with godaddy we have purchased a SSL certificate, after that I generated a certificate, download the key, add it on godaddy panel and then upload the response in the certificate generated in force.com. This process made the ceritificate active and everything went ok.

 

Thing is that I am not able to see the HTTPS in front of the domain, try it yourself:

 

https://www.colormelocoton.com

 

I already verified that on session settings the checkbox is ok on "Require secure connections (HTTPS)". I have a lot of experience in force.com however this is the first time I have to setup a Secure SSL domain and I dont know if I am doing something wrong or whats the deal.

 

Also I have pointed the CNAME on godaddy to the secure web address in the site details page and no change. Any help will be greatly appreciated.

 

Hi,

 

We have developed an apex page and controller and placed this on a site on force.com. Once a record of the object is created its owner is "Site Guest User", if I created manually it will be created under the owner of the user I am logged in.

 

I have a workflow rule in which an email alert is sent to the email address field any time it is created. This works fine and there is no problem, but only when i create it manually with the internal user.

 

If the record is created from the public site, and the owner becomes the "Site Guest User", the workflow rule won't activate, it only activates when the owner is the internal user.

 

Any ideas why this may be going on? Thanks!

Hi,

 

We have the following site:

 

www.vymisa.com/app/home.html

 

When accesing the page it displays the following error:

 

Authorization Required 

You must first log in or register before accessing this page. 
If you have forgotten your password, click Forgot Password to reset it. 

 

We have already checked Public Profile Read, Create, Edit and Delet for the object, also check field level security on the fields. Not sure what is the problem.

 

Also the page has security enabled for the profile.

 

Would appreciate some help! Thanks!

 

-Peña

Hello all,

 

We are building an app in which one of the pages requires information submitted by the user. So we have set a few "input fields" in the vf page so the user can enter the information.

 

Problem is that the input fields are not rendering, they are showing as visible and does not allow to input. We checked the field accesibility and security of the fields, so they are accesible to such profile and also verified that the public profile has read, edit, delet on the object permission.

 

Any ideas on what may be the problem? Or what else we could check? Thanks folks!

 

Here is the code

 

<apex:tab id="tab_cliente_actual" label="Cliente X" title="Cliente X" rendered="{!is_cliente==true}">
<apex:form >
<apex:pageblock >
<apex:pageBlockSection id="cliente_data" title="Datos del cliente">
<apex:pageBlockSectionItem >Nombre del Cliente: <apex:inputField value="{!current_cliente.name}"/></apex:pageBlockSectionItem>
<p>
<apex:commandButton value="GUARDAR CLIENTE" action="{!guardar_datos}">
<apex:actionSupport event="onclic" rerender="tab_granjas"/> 
</apex:commandButton> 
</p>
</apex:pageBlockSection>


<apex:pageBlockSection id="block_granjas" title="Granjas">


<apex:pageblock >
<div id="results">
<h2>Lista de granjas</h2>
<apex:pageBlockTable value="{!Granjas_list}" var="p" id="results2"> 

<apex:column value="{!p.Name}"/>
<apex:column headerValue="Acciones" >

<apex:commandLink value="ver" action="{!go_granja}">
<apex:actionSupport event="onclic" rerender="tab_panel"/> 
<apex:param name="id" assignTo="{!current_id}" value="{!p.Id}" /> 
</apex:commandLink>
</apex:column> 
</apex:pageBlockTable>
</div> 
</apex:pageblock> 
</apex:pageBlockSection> 
</apex:pageblock>
<apex:commandButton value="RETORNAR A CLIENTES" action="{!go_start}">
</apex:commandButton> 
</apex:form>
</apex:tab>
 

 

Sites Explanation:

We have a sites project which is public. The public access settings allow our end-users to login via a guest license and enter their information (no authentication).

 

Sites URL Setup:

Default URL: http://something.force.com/xyzenrollment

Secure URL: https://something.secure.force.com/xyzenrollment

Custom Web Address: http://enroll.something.com

 

The Issue:

The Site is not secure. All information entered via the Site by our end-users needs to be secure (i.e. currently http, needs to be https).

 

Question:

How do I point the users to the Secure URL vs. the Default URL while still keeping the Custom Web Address masking? I changed the Administration Setup > Security Controls > Session Settings > Require secure connections (HTTPS) to checked, but this does not seem to do the trick.

I am 99.9% sure I have set access control correctly. The page displays, but for some reason it will not display/render an <apex:inputField>. Nothing shows up at all. Doesn't throw an error, it just seems to be ignoring any and all <apex:inputField>'s. Any ideas? This is all under a testing dev org. Thank you!

  • July 09, 2010
  • Like
  • 0

We are going to start using Sites to capture some personal details, so this will facilitate using SSL in the form. We will want to use a custom domain name to mask the force.com site (eg. subscribe.ourdomain.com instead of site.secure.force.com)

 

I know that force.com has its own SSL certificate for *.force.com, however my concern is that if we override with a custom domain name, the browser will see an inconsistency between the URL (ourdomain.com) and the SSL certificate for force.com, and display an ugly 'exception' page (which most browsers now do - IE7/8, FF3).

 

Is there any way to get round this? Will this even be an issue with custom domain names? We are not in live yet so I can't properly test this case, however would be interested to get some feedback from the SFDC sites product team on this... :)

 

Thanks

Stephen

In my custom controller for a Visualforce page, I'm dynamically building a URL to an external vendor site that looks something like this in my sandbox:
 
Code:
externalURL + '—id=' + objectId + '&sessionid=' + mySessionId + '&url=https://tapp0-api.salesforce.com/services/Soap/class/my_Web_Service'

 
For this, the externalURL is something like https://thevendor.urlhere.com.  Of course, objectId is my Salesforce object and mySessionId is my Salesforce session so the vendor can connect to my webservice.
Once I build the URL, I want to open it in a new window (like target="_blank" for a hyperlink), leaving the original Visualforce page open in the Salesforce window.
 
I have the basic functionality working using a Redirect, but I've been unable to determine how to open it in a new window instead of overlaying the page in the existing one.