
Announcements
Hi at all,
i am new in programing "Power Apps" ;=)
I filled this code in my first power app and it is working fine:
Office365Outlook.ContactPostItemV2(
DropdownKontaktordner.SelectedText.id;
If(
IsBlank(ThisItem.Vorname);
" ";
ThisItem.Vorname
);
Table(
{
Value: If(
IsBlank(ThisItem.Telefon_weitere_Nummer);
" ";
ThisItem.Telefon_weitere_Nummer
)
}
);
{
companyName: If(
IsBlank(ThisItem.Firma1);
" ";
ThisItem.Firma1
);
surname: If(
IsBlank(ThisItem.Nachname);
" ";
ThisItem.Nachname
);
mobilePhone: If(
IsBlank(ThisItem.Handy);
" ";
ThisItem.Handy
);
businessPhones: {
Value: If(
IsBlank(ThisItem.Telefon_gesch_1);
" ";
ThisItem.Telefon_gesch_1
)
};
businessHomePage: If(
IsBlank(ThisItem.WWW);
" ";
ThisItem.WWW
);
emailAddresses: Table(
{
address: If(
IsBlank(ThisItem.EMailAdresse);
" ";
ThisItem.EMailAdresse
);
name: If(
IsBlank(ThisItem.EMailAdresse);
" ";
ThisItem.EMailAdresse
)
};
{ address: "test@qwe.ecc"; name: "Test" }
)
}
)
I tryed to fill the some bussiness adress, but still get an error that the type is not correct.
I know that the businessAddress: is from typ: record.
What i need is some example how to define the in my code?
Also, I wondering about the MSDN doucumentation: i must instert vom ";" operations that it will become to work.
In the doucumentation there are "," operators.
Anyway,i looking for an example how to declare the type of record for the businessAdress.
Hope any could help me..
I would not do this with an flow.
Kind regards
Stefan
Found Solution for the problem "," and ";" Build global support into canvas apps - Power Apps | Microsoft Docs
Found also a solution for do the defintion for a typ of record:
Hope that will help other people too.
ClearCollect(
Geschaeftadresse1;
{
city: ThisItem.Ort;
countryOrRegion: ThisItem.Land;
postalCode: ThisItem.PLZ;
state: "";
street: ThisItem.Strasse
}
);;
Office365Outlook.ContactPostItemV2(
DropdownKontaktordner.SelectedText.id;
If(
IsBlank(ThisItem.Vorname);
" ";
ThisItem.Vorname
);
Table(
{
Value: If(
IsBlank(ThisItem.Telefon_weitere_Nummer);
" ";
ThisItem.Telefon_weitere_Nummer
)
}
);
{
companyName: If(
IsBlank(ThisItem.Firma1);
" ";
ThisItem.Firma1
);
surname: If(
IsBlank(ThisItem.Nachname);
" ";
ThisItem.Nachname
);
mobilePhone: If(
IsBlank(ThisItem.Handy);
" ";
ThisItem.Handy
);
businessPhones: {
Value: If(
IsBlank(ThisItem.Telefon_gesch_1);
" ";
ThisItem.Telefon_gesch_1
)
};
businessHomePage: If(
IsBlank(ThisItem.WWW);
" ";
ThisItem.WWW
);
emailAddresses: Table(
{
address: If(
IsBlank(ThisItem.EMailAdresse);
" ";
ThisItem.EMailAdresse
);
name: If(
IsBlank(ThisItem.EMailAdresse);
" ";
ThisItem.EMailAdresse
)
};
{
address: "test@qwe.ecc";
name: "Test"
}
);
businessAddress: First(Geschaeftadresse1)
}
)Hope that will help other people too.
Kind regards
Stefan